Skip to content

DOC: Fix reference to rows in read_csv(index_col) error message #57991

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
Mar 26, 2024
Merged

DOC: Fix reference to rows in read_csv(index_col) error message #57991

merged 4 commits into from
Mar 26, 2024

Conversation

sparshsah
Copy link
Contributor

@sparshsah sparshsah commented Mar 25, 2024

Description
The user passes column numbers (not row numbers) as the index_col argument to specify an index when calling e.g. read_csv().

Checklist

  • closes #xxxx (Replace xxxx with the GitHub issue number) (No Specific Issue)
  • Tests added and passed if fixing a bug or adding a new feature (No change to functionality)
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions. (No new args/methods/functions).
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature. (No change to functionality)

@mroeschke mroeschke added the Error Reporting Incorrect or improved errors from pandas label Mar 25, 2024
sparshsah and others added 2 commits March 25, 2024 23:22
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
@sparshsah sparshsah requested a review from mroeschke March 26, 2024 08:07
@mroeschke mroeschke added this to the 3.0 milestone Mar 26, 2024
@mroeschke mroeschke merged commit 93b77ca into pandas-dev:main Mar 26, 2024
@mroeschke
Copy link
Member

Thanks @sparshsah

@sparshsah sparshsah deleted the patch-1 branch March 26, 2024 17:19
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
…ndas-dev#57991)

* Fix reference to rows in `read_csv(index_col)` warning message

* test - update expected error message

* accept

Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>

* accept

Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>

---------

Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants