Skip to content

Commit 9a1c6a1

Browse files
committed
CLN: Deprecate non-keyword arguments in read_table pandas-dev#41485
1 parent 2e18f91 commit 9a1c6a1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pandas/io/parsers/readers.py

+1
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ def read_csv(
591591

592592
return _read(filepath_or_buffer, kwds)
593593

594+
594595
@deprecate_nonkeyword_arguments(
595596
version=None, allowed_args=["filepath_or_buffer"], stacklevel=3
596597
)

pandas/tests/io/parser/common/test_common_basic.py

+1
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,7 @@ def test_malformed_second_line(all_parsers):
824824
expected = DataFrame({"a": ["b"]})
825825
tm.assert_frame_equal(result, expected)
826826

827+
827828
def test_read_table_posargs_deprecation(all_parsers):
828829
# https://github.com/pandas-dev/pandas/issues/41485
829830
f = StringIO("a\tb\n1\t2")

0 commit comments

Comments
 (0)