numpy.
issubdtype
Returns True if first argument is a typecode lower/equal in type hierarchy.
arg1, arg2 : dtype_like
dtype or string representing a typecode.
out : bool
See also
issubsctype, issubclass_
issubsctype
issubclass_
numpy.core.numerictypes
Examples
>>> np.issubdtype('S1', str) True >>> np.issubdtype(np.float64, np.float32) False
numpy.issctype
numpy.issubsctype