File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ MultiIndex
162
162
I/O
163
163
^^^
164
164
- Bug in :meth: `read_json ` where integer overflow was occuring when json contains big number strings. (:issue: `30320 `)
165
- -
165
+ - ` read_csv ` will now raise a `` ValueError `` when arguments ` header ` and ` prefix ` both are not None. ( :issue: ` 27394 `)
166
166
-
167
167
168
168
Plotting
Original file line number Diff line number Diff line change @@ -575,10 +575,10 @@ def test_to_csv_headers(self):
575
575
recons .reset_index (inplace = True )
576
576
tm .assert_frame_equal (to_df , recons )
577
577
578
- def test_to_csv_raises_on_header_prefix ():
578
+ def test_to_csv_raises_on_header_prefix (self ):
579
579
msg = "Argument prefix must be None if argument header is not None"
580
+ s = StringIO ("0,1\n 2,3" )
580
581
with pytest .raises (ValueError , match = msg ):
581
- s = StringIO ("0,1\n 2,3" )
582
582
read_csv (s , header = 0 , prefix = "_X" )
583
583
584
584
def test_to_csv_multiindex (self , float_frame , datetime_frame ):
You can’t perform that action at this time.
0 commit comments