From 4dcdcb71f13ee4401b0b033a046d4818e8a2eae7 Mon Sep 17 00:00:00 2001 From: Robert West Date: Tue, 6 Jan 2015 14:30:55 -0500 Subject: [PATCH 1/2] DOC: Edited doc string of 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..d95dd6f2dd135 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 From 5288b39caa3b0bc38ba1fdb635cfae159708c858 Mon Sep 17 00:00:00 2001 From: Robert Date: Tue, 6 Jan 2015 16:57:45 -0500 Subject: [PATCH 2/2] DOC: pandas/core/frame.duplicated FIXED Spacing in doc string --- pandas/core/frame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d95dd6f2dd135..988183835b7f0 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2726,8 +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 - 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 + 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