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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pandas/io/parsers/base_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def __init__(self, kwds) -> None:
and all(map(is_integer, self.index_col))
):
raise ValueError(
"index_col must only contain row numbers "
"index_col must only contain integers of column positions "
"when specifying a multi-index header"
)
else:
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/io/parser/test_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def test_header_multi_index(all_parsers):
{"index_col": ["foo", "bar"]},
(
"index_col must only contain "
"row numbers when specifying "
"integers of column positions when specifying "
"a multi-index header"
),
),
Expand Down