Numpy Data type: issubdtype() function
numpy.issubdtype() function
The issubdtype() function returns True if first argument is a typecode lower/equal in type hierarchy.
Version: 1.15.0
Syntax:
numpy.issubdtype(arg1, arg2)
Parameter:
Name | Description | Required / Optional |
---|---|---|
arg1, arg2 : dtype_like | dtype or string representing a typecode. |
Return value:
out : bool
Example: numpy.issubdtype() function
>>> import numpy as np
>>> np.issubdtype('S1', np.string_)
True
>>> np.issubdtype(np.float64, np.float32)
False
Python - NumPy Code Editor:
Previous:
issctype()
Next:
issubsctype()
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics