-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
Closed
Labels
Closing CandidateMay be closeable, needs more eyeballsMay be closeable, needs more eyeballsDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsEnhancementExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.InternalsRelated to non-user accessible pandas implementationRelated to non-user accessible pandas implementation
Description
We have is_dtype
for checking whether the dtype / array's dtype is of the same kind as self
. It may sometimes be useful to have an exact comparison for parametrized dtypes like Categorical
and Period
.
So
>>> PeriodDtype('4D').is_dtype(PeriodDtype('5D'))
True
>>> PeriodDtype('4D').is_dtype_equal(PeriodDtype('5D'))
Metadata
Metadata
Assignees
Labels
Closing CandidateMay be closeable, needs more eyeballsMay be closeable, needs more eyeballsDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsEnhancementExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.InternalsRelated to non-user accessible pandas implementationRelated to non-user accessible pandas implementation