From c8ca1449ff8fcfaaefd6678c0c77d11b10beffd4 Mon Sep 17 00:00:00 2001 From: Aaron Critchley Date: Sun, 3 Dec 2017 23:35:07 +0000 Subject: [PATCH] DOC: Remove keep=False docs on nlargest/nsmallest --- pandas/core/frame.py | 4 ++-- pandas/core/series.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index ff42e39d9dbdd..f377fa1f5731a 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3769,7 +3769,7 @@ def nlargest(self, n, columns, keep='first'): Number of items to retrieve columns : list or str Column name or names to order by - keep : {'first', 'last', False}, default 'first' + keep : {'first', 'last'}, default 'first' Where there are duplicate values: - ``first`` : take the first occurrence. - ``last`` : take the last occurrence. @@ -3804,7 +3804,7 @@ def nsmallest(self, n, columns, keep='first'): Number of items to retrieve columns : list or str Column name or names to order by - keep : {'first', 'last', False}, default 'first' + keep : {'first', 'last'}, default 'first' Where there are duplicate values: - ``first`` : take the first occurrence. - ``last`` : take the last occurrence. diff --git a/pandas/core/series.py b/pandas/core/series.py index 5d0e6907a6595..34ad493d85fbc 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -2058,7 +2058,7 @@ def nlargest(self, n=5, keep='first'): ---------- n : int Return this many descending sorted values - keep : {'first', 'last', False}, default 'first' + keep : {'first', 'last'}, default 'first' Where there are duplicate values: - ``first`` : take the first occurrence. - ``last`` : take the last occurrence. @@ -2105,7 +2105,7 @@ def nsmallest(self, n=5, keep='first'): ---------- n : int Return this many ascending sorted values - keep : {'first', 'last', False}, default 'first' + keep : {'first', 'last'}, default 'first' Where there are duplicate values: - ``first`` : take the first occurrence. - ``last`` : take the last occurrence.