Skip to content

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.

@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