numpy.issubsctype
-
numpy.issubsctype(arg1, arg2)[source] -
Определить, является ли первый аргумент подклассом второго аргумента.
Параметры: -
arg1, arg2 : dtype or dtype specifier -
Типы данных.
Возвращает: -
out : bool -
Результат.
См. также
Примеры
>>> np.issubsctype('S8', str) True >>> np.issubsctype(np.array([1]), int) True >>> np.issubsctype(np.array([1]), float) False -
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.15.4/reference/generated/numpy.issubsctype.html