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

BUG: Index constructor silently ignoring dtype #40411

Merged
merged 2 commits into from
Mar 14, 2021

Conversation

jbrockmendel
Copy link
Member

We can go a step further and re-use sanitize_array for the dtype is None case, but that ever-so-slightly changes our datetime-inference behavior, so we'd need to either deprecate or call it a bugfix.

@simonjayhawkins simonjayhawkins added Bug Constructors Series/DataFrame/Index/pd.array Constructors Dtype Conversions Unexpected or buggy dtype conversions labels Mar 14, 2021
@jreback jreback added this to the 1.3 milestone Mar 14, 2021
@jreback jreback merged commit ed529a1 into pandas-dev:master Mar 14, 2021
@jreback
Copy link
Contributor

jreback commented Mar 14, 2021

very nice!

@jbrockmendel jbrockmendel deleted the ref-index-constructors-4 branch March 15, 2021 03:18
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 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.

BUG/API: Index constructor does not enforce specified dtype
3 participants