Repository navigation
BUG: read_csv pyarrow dtype dictionary omitting an index column - #71858
Open
LionStone-1 wants to merge 1 commit into
Open
LionStone-1 wants to merge 1 commit into
LionStone-1 wants to merge 1 commit into
Conversation
Contributor
|
Thanks for the pull request, @LionStone-1! It's linked to #68041, but that issue isn't assigned to you yet. To make sure two people don't unknowingly work on the same thing, we ask contributors to claim an issue first. You can comment This pull request is unlikely to be reviewed until #68041 is assigned to you. |
LionStone-1
marked this pull request as ready for review
November 3, 2026 07:00
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #68041.
read_csv(engine="pyarrow")raisesIndexErrorwhen a dtype dictionary omits a named index column. The fix uses the already-resolved column name instead of treating the name as a numeric position.Added regression coverage for named, positional, and mixed MultiIndex selections, plus a release note. The scalar-dtype case was already fixed upstream and is not changed here.
Validation on the source checkout:
git diff --check: passed.The full pandas suite, full pre-commit hooks, and GitHub CI have not run locally.
AI assistance: Codex desktop assisted with investigation, code, regression tests, and this description. Local Codex configuration specifies
gpt-6.1-solwith reasoning effortlow; those are configuration values, not independently recorded per-turn runtime metadata. The contributor personally reviewed the changes and requested this draft, which remains for their editing before review.