Skip to content

Commit d962941

Browse files
committed
make requested changes
1 parent 5fc40bd commit d962941

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/source/whatsnew/v1.1.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ MultiIndex
168168
I/O
169169
^^^
170170
- Bug in :meth:`read_json` where integer overflow was occuring when json contains big number strings. (:issue:`30320`)
171-
- `read_csv` will now raise a ``ValueError`` when arguments `header` and `prefix` both are not None. (:issue:`27394`)
171+
- `read_csv` will now raise a ``ValueError`` when the arguments `header` and `prefix` both are not `None`. (:issue:`27394`)
172172
-
173173

174174
Plotting

pandas/tests/io/parser/test_common.py

+2
Original file line numberDiff line numberDiff line change
@@ -2044,7 +2044,9 @@ def test_read_csv_raises_on_header_prefix(all_parsers):
20442044
# gh-27394
20452045
parser = all_parsers
20462046
msg = "Argument prefix must be None if argument header is not None"
2047+
20472048
s = StringIO("0,1\n2,3")
2049+
20482050
with pytest.raises(ValueError, match=msg):
20492051
parser.read_csv(s, header=0, prefix="_X")
20502052

0 commit comments

Comments
 (0)