Skip to content

Commit 6d0ae9c

Browse files
committed
CLN: Deprecate non-keyword arguments in concat pandas-dev#41485
1 parent 768c521 commit 6d0ae9c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pandas/tests/reshape/concat/test_concat.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -642,16 +642,15 @@ def test_concat_multiindex_with_empty_rangeindex():
642642

643643
def test_concat_posargs_deprecation(all_parsers):
644644
# https://github.com/pandas-dev/pandas/issues/41485
645-
df = pd.DataFrame([[1,2,3]], index=["a"])
646-
df2 = pd.DataFrame([[4,5,6]], index=["b"])
645+
df = pd.DataFrame([[1, 2, 3]], index=["a"])
646+
df2 = pd.DataFrame([[4, 5, 6]], index=["b"])
647647

648648
msg = (
649649
"In a future version of pandas all arguments of concat"
650650
"except for the argument 'objs' will be keyword-only"
651651
)
652652
with tm.assert_produces_warning(FutureWarning, match=msg):
653-
result = concat([df, df2], " ")
654-
expected = DataFrame([[1,2,3],[4,5,6]], index=["a","b"])
653+
result = concat([df, df2], " ")
654+
expected = DataFrame([[1, 2, 3],[4, 5, 6]], index=["a", "b"])
655655
tm.assert_frame_equal(result, expected)
656-
657656

0 commit comments

Comments
 (0)