You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that str(cat.dtype) should be changed back to always being 'category'. I've seen several places where people use str(thing.dtype) == 'category' as a way to check for Categoricals. Even subtle things like this arrow PR would break.
So instead of
In [6]: str(pd.Categorical([1, 2, 3]).dtype)
Out[6]: 'CategoricalDtype(categories=[1, 2, 3], ordered=False)'
it would be
Out[6]: 'category'
We can leave __repr__ to be unambiguous.
The text was updated successfully, but these errors were encountered:
I think that
str(cat.dtype)
should be changed back to always being 'category'. I've seen several places where people usestr(thing.dtype) == 'category'
as a way to check for Categoricals. Even subtle things like this arrow PR would break.So instead of
it would be
We can leave
__repr__
to be unambiguous.The text was updated successfully, but these errors were encountered: