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()
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/numpy/data-type-routines/issubdtype.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics