numpy.issctype
numpy.issubsctype
numpy.
issubdtype
Returns True if first argument is a typecode lower/equal in type hierarchy.
dtype or string representing a typecode.
See also
issubsctype, issubclass_
issubsctype
issubclass_
numpy.core.numerictypes
Overview of numpy type hierarchy.
Examples
>>> np.issubdtype('S1', np.string_) True >>> np.issubdtype(np.float64, np.float32) False