On this page
numpy.issubdtype
numpy.issubdtype(arg1, arg2)
[source]-
Returns True if first argument is a typecode lower/equal in type hierarchy.
- Parameters
-
arg1, arg2dtype_like
-
dtype or string representing a typecode.
- Returns
-
outbool
Examples
>>> np.issubdtype('S1', np.string_) True >>> np.issubdtype(np.float64, np.float32) False
© 2005–2020 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.19/reference/generated/numpy.issubdtype.html