Skip to content

REF: call pandas_dtype up-front in Index.__new__ #33407

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 11 commits into from
Apr 10, 2020

Conversation

jbrockmendel
Copy link
Member

This leaves us in position to drop in dtype-only is_foo_dtype checks

@jreback jreback added Dtype Conversions Unexpected or buggy dtype conversions Clean labels Apr 8, 2020
@jreback jreback added this to the 1.1 milestone Apr 8, 2020
@jreback
Copy link
Contributor

jreback commented Apr 8, 2020

seems fine, i imagine this has a tiny perf hit, which is likely acceptable, can you do a quick measurement.

@jbrockmendel
Copy link
Member Author

i imagine this has a tiny perf hit

yah, i think this only becomes a win once the dtype-only checks go in

@jbrockmendel jbrockmendel added the Constructors Series/DataFrame/Index/pd.array Constructors label Apr 9, 2020
@jreback jreback merged commit 8d299e4 into pandas-dev:master Apr 10, 2020
@jbrockmendel jbrockmendel deleted the ref-index-constructor branch April 10, 2020 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Constructors Series/DataFrame/Index/pd.array Constructors Dtype Conversions Unexpected or buggy dtype conversions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants