Skip to content

PERF: use fastpath for is_categorical_dtype calls #33945

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
merged 4 commits into from
May 4, 2020

Conversation

jbrockmendel
Copy link
Member

This doesn't get all of them

@jreback jreback added Categorical Categorical Data Type Performance Memory or execution speed performance labels May 4, 2020
@jreback jreback added this to the 1.1 milestone May 4, 2020
@@ -631,6 +631,9 @@ def astype(self, dtype, copy=True):
Index
Index with values cast to specified dtype.
"""
if dtype is not None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is possible we need to optimize this at some point (pandas_dtype) to fast path things

@jreback jreback merged commit a6890c6 into pandas-dev:master May 4, 2020
@jreback
Copy link
Contributor

jreback commented May 4, 2020

lgtm. once we have merged these is_* fixes should benchmark with the hash that @TomAugspurger started with (or in theory the asv graphs will do this for us).

@jbrockmendel jbrockmendel deleted the perf-cat_dtype branch May 4, 2020 17:01
rhshadrach pushed a commit to rhshadrach/pandas that referenced this pull request May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type Performance Memory or execution speed performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants