pandas.api.extensions.ExtensionDtype.is_dtype¶
- classmethod ExtensionDtype.is_dtype(dtype)[source]¶
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
.dtype
is an object and is an instance ofcls
dtype
has adtype
attribute, and any of the above conditions is true fordtype.dtype
.