Skip to content

Commit 369e465

Browse files
committed
ENH: Deprecate non-keyword arguments for drop_duplicates.
1 parent 8d5b0ba commit 369e465

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/frame/methods/test_drop_duplicates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def test_drop_duplicates_pos_args_deprecation():
478478
df = DataFrame({"a": [1, 1, 2], "b": [1, 1, 3], "c": [1, 1, 3]})
479479
msg = (
480480
r"Starting with Pandas version 2\.0 all arguments of drop_duplicates "
481-
r"except for the argument 'self' will be keyword-only"
481+
r"except for the arguments 'self' and 'subset' will be keyword-only"
482482
)
483483
with tm.assert_produces_warning(FutureWarning, match=msg):
484-
df.drop_duplicates(["b", "c"])
484+
df.drop_duplicates(["b", "c"], "last")

0 commit comments

Comments
 (0)