From 82107e5d468c459a40fb11e2e974170b090b9680 Mon Sep 17 00:00:00 2001 From: Alex Strick van Linschoten Date: Thu, 21 Jun 2018 20:20:41 +0100 Subject: [PATCH 1/3] add see also references for Series.any --- pandas/core/generic.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 9902da4094404..344359bf44593 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9420,7 +9420,9 @@ def _doc_parms(cls): _any_see_also = """\ See Also -------- +pandas.DataFrame.any : Return whether any element is True over requested axis. pandas.DataFrame.all : Return whether all elements are True. +pandas.Series.all : Return whether all elements are True over series or dataframe axis. """ _any_desc = """\ From 2b88b2f56a808c94fb42145917740a831f9b99a6 Mon Sep 17 00:00:00 2001 From: Alex Strick van Linschoten Date: Thu, 21 Jun 2018 20:53:52 +0100 Subject: [PATCH 2/3] edit see also for pandas.Series.any --- pandas/core/generic.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 344359bf44593..4d007e74fda51 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -463,7 +463,7 @@ def ndim(self): See Also -------- - ndarray.ndim + ndarray.ndim : Number of array dimensions. Examples -------- @@ -487,7 +487,7 @@ def size(self): See Also -------- - ndarray.size + ndarray.size : Number of elements in the array. Examples -------- @@ -9420,9 +9420,12 @@ def _doc_parms(cls): _any_see_also = """\ See Also -------- -pandas.DataFrame.any : Return whether any element is True over requested axis. -pandas.DataFrame.all : Return whether all elements are True. -pandas.Series.all : Return whether all elements are True over series or dataframe axis. +any : Standard library version of this method. +numpy.any : Numpy version of this method. +Series.any : Return whether any element is True. +Series.all : Return whether all elements are True. +DataFrame.any : Return whether any element is True over requested axis. +DataFrame.all : Return whether all elements are True over requested axis. """ _any_desc = """\ From 59506e1d25fd3e3eaf85fbb6bcc12561a9204616 Mon Sep 17 00:00:00 2001 From: Alex Strick van Linschoten Date: Thu, 21 Jun 2018 22:07:02 +0100 Subject: [PATCH 3/3] remove reference to standard library --- pandas/core/generic.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 4d007e74fda51..04ba0b5de3f7f 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9420,7 +9420,6 @@ def _doc_parms(cls): _any_see_also = """\ See Also -------- -any : Standard library version of this method. numpy.any : Numpy version of this method. Series.any : Return whether any element is True. Series.all : Return whether all elements are True.