Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: CategoricalDtype.__eq__ with categories=None stricter #38516

Merged
merged 6 commits into from
Dec 22, 2020

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented Dec 16, 2020

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

xref #37929

This will allow us to remove special-casing for Categorical in Block._astype, Index.astype, and Categorical.astype.

pandas/core/dtypes/dtypes.py Outdated Show resolved Hide resolved
pandas/tests/dtypes/cast/test_infer_dtype.py Outdated Show resolved Hide resolved
@jreback jreback added Categorical Categorical Data Type API - Consistency Internal Consistency of API/Behavior labels Dec 16, 2020
@jreback
Copy link
Contributor

jreback commented Dec 22, 2020

ok this looks good. though having a hard time telling what changed from a user POV, can you add a whatsnew note.

@jbrockmendel
Copy link
Member Author

whatsnew added + greenish

@jreback jreback added this to the 1.3 milestone Dec 22, 2020
@jreback
Copy link
Contributor

jreback commented Dec 22, 2020

can you rebase

@jbrockmendel
Copy link
Member Author

rebased + greenish

@jreback jreback merged commit 2bf68eb into pandas-dev:master Dec 22, 2020
@jbrockmendel jbrockmendel deleted the bug-cdt-eq branch December 22, 2020 17:45
@jbrockmendel
Copy link
Member Author

excellent. this blocked #38530, which in turn is one of only two remaining special cases preventing us from ripping out Block._astype

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API - Consistency Internal Consistency of API/Behavior Categorical Categorical Data Type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants