Skip to content

REF: unify casting logic in Categorical.__init__ #40097

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

Merged

Conversation

jbrockmendel
Copy link
Member

Big picture, trying to call maybe_infer_to_datetimelike in fewer places so we can simplify scattered datetimelike casting.

@jreback jreback added Categorical Categorical Data Type Refactor Internal refactoring of code labels Feb 27, 2021
@jreback jreback added this to the 1.3 milestone Feb 27, 2021
@jreback jreback merged commit 0b671be into pandas-dev:master Feb 27, 2021
@jreback
Copy link
Contributor

jreback commented Feb 27, 2021

pls have a check on perf, IIRC we were pretty sensitive here (prob unchanged but who knows)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants