On this page
pandas.api.extensions.ExtensionDtype.is_dtype
- classmethodExtensionDtype.is_dtype(dtype)[source]
- 
    Check if we match ‘dtype’. - Parameters
- 
      - dtype:object
- 
        The object to check. 
 
- Returns
- 
      - bool
 
 Notes The default implementation is True if - cls.construct_from_string(dtype)is an instance of- cls.
- dtypeis an object and is an instance of- cls
- dtypehas a- dtypeattribute, and any of the above conditions is true for- dtype.dtype.
 
© 2008–2022, 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/1.5.0/reference/api/pandas.api.extensions.ExtensionDtype.is_dtype.html