From 5733e158c1f3fc070fdf3cbed4ba682678d37115 Mon Sep 17 00:00:00 2001 From: Robert Date: Wed, 7 Jan 2015 11:15:08 -0500 Subject: [PATCH] 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() --- pandas/core/frame.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 8ee65949e6bc1..ea7896b0352a5 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2726,7 +2726,8 @@ def duplicated(self, subset=None, take_last=False): Only consider certain columns for identifying duplicates, by default use all of the columns take_last : boolean, default False - Take the last observed row in a row. Defaults to the first row + For a set of distinct duplicate rows, flag all but the last row as + duplicated. Default is for all but the first row to be flagged cols : kwargs only argument of subset [deprecated] Returns