Back to Numerical Arrays (NumPy)
np.isdtype
Returns a boolean indicating whether the provided dtype is of the specified kind.
Syntax
np.isdtype(dtype, kind)
Description
Returns a boolean indicating whether the provided dtype is of the specified kind. This is the NumPy 2.0 version of issubdtype, with a more explicit API.
Parameters
| Name | Description |
|---|---|
| dtype | - The dtype to check |
| kind | - The dtype kind to check against |
Returns
boolean