hipdf.core.dtypes.CategoricalDtype.is_dtype#
21 min read time
Applies to Linux
- classmethod CategoricalDtype.is_dtype(dtype: object) bool#
Check if we match ‘dtype’.
Parameters#
- dtypeobject
The object to check.
Returns#
bool
Notes#
The default implementation is True if
cls.construct_from_string(dtype)is an instance ofcls.dtypeis an object and is an instance ofclsdtypehas adtypeattribute, and any of the above conditions is true fordtype.dtype.