Skip to content

Commit 5733e15

Browse files
9203 REQUEST SQUASHED - DOCS: doc string edited pandas/core/frame.duplicated()
Redefined `take_last` variable in doc string. Original definition only made sense for drop_duplicates()
1 parent 128ce85 commit 5733e15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/frame.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2726,7 +2726,8 @@ def duplicated(self, subset=None, take_last=False):
27262726
Only consider certain columns for identifying duplicates, by
27272727
default use all of the columns
27282728
take_last : boolean, default False
2729-
Take the last observed row in a row. Defaults to the first row
2729+
For a set of distinct duplicate rows, flag all but the last row as
2730+
duplicated. Default is for all but the first row to be flagged
27302731
cols : kwargs only argument of subset [deprecated]
27312732
27322733
Returns

0 commit comments

Comments
 (0)