classmethod ExtensionDtype.is_dtype(dtype) → bool [source]
Check if we match ‘dtype’.
| Parameters: |
|
|---|---|
| Returns: |
|
The default implementation is True if
cls.construct_from_string(dtype) is an instance of cls.dtype is an object and is an instance of cls
dtype has a dtype attribute, and any of the above conditions is true for dtype.dtype.
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.api.extensions.ExtensionDtype.is_dtype.html