Skip to content

BUG: Avoid RangeIndex conversion in read_csv if dtype is specified #59316

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 3 commits into from
Jul 30, 2024

Conversation

mroeschke
Copy link
Member

No whatsnew needed since a it's a bug on main

@mroeschke mroeschke added Dtype Conversions Unexpected or buggy dtype conversions IO CSV read_csv, to_csv labels Jul 26, 2024
@mroeschke mroeschke added this to the 3.0 milestone Jul 26, 2024
@mroeschke
Copy link
Member Author

Going to merge since this fixes the bug on main. Happy to follow up if needed

@mroeschke mroeschke merged commit 7acd629 into pandas-dev:main Jul 30, 2024
45 checks passed
@mroeschke mroeschke deleted the bug/read_csv/idx_dtype branch July 30, 2024 17:20
jorisvandenbossche pushed a commit to WillAyd/pandas that referenced this pull request Nov 16, 2024
…andas-dev#59316)

* BUG: Avoid RangeIndex conversion in read_csv if dtype is specified

* Undo change

* Typing
jorisvandenbossche added a commit that referenced this pull request Nov 18, 2024
#60330)

* Backport PR #60321: TST (string dtype): resolve all xfails in IO parser tests

(cherry picked from commit ee3c18f)

* BUG: Avoid RangeIndex conversion in read_csv if dtype is specified (#59316)


Co-authored-by: Joris Van den Bossche <[email protected]>
Co-authored-by: Matthew Roeschke <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions IO CSV read_csv, to_csv
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: index_col in read_csv ignores dtype argument
1 participant