From 946daa087de0c5ad47201cf6660a8591e9570893 Mon Sep 17 00:00:00 2001 From: shriyakalakata Date: Fri, 3 May 2024 15:23:46 -0400 Subject: [PATCH 1/2] Fix SA01 errors --- ci/code_checks.sh | 2 -- pandas/core/base.py | 10 ++++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 1e5bf5af7e057..d0075a3d9278c 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -201,8 +201,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.ge PR07,SA01" \ -i "pandas.Series.gt PR07,SA01" \ -i "pandas.Series.hasnans SA01" \ - -i "pandas.Series.is_monotonic_decreasing SA01" \ - -i "pandas.Series.is_monotonic_increasing SA01" \ -i "pandas.Series.kurt RT03,SA01" \ -i "pandas.Series.kurtosis RT03,SA01" \ -i "pandas.Series.le PR07,SA01" \ diff --git a/pandas/core/base.py b/pandas/core/base.py index cac8350a9e926..b699c43088f98 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -1135,6 +1135,11 @@ def is_monotonic_increasing(self) -> bool: ------- bool + See Also + -------- + Series.is_monotonic_decreasing : Return boolean if values in the object are + monotonically decreasing. + Examples -------- >>> s = pd.Series([1, 2, 2]) @@ -1158,6 +1163,11 @@ def is_monotonic_decreasing(self) -> bool: ------- bool + See Also + -------- + Series.is_monotonic_increasing : Return boolean if values in the object are + monotonically increasing. + Examples -------- >>> s = pd.Series([3, 2, 2, 1]) From 3ddbb9d529f93aab48094f55f142f5186ed4dba1 Mon Sep 17 00:00:00 2001 From: shriyakalakata Date: Fri, 3 May 2024 15:26:09 -0400 Subject: [PATCH 2/2] Fix SA01 errors --- ci/code_checks.sh | 1 - pandas/core/base.py | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index d0075a3d9278c..936e3664cfe93 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -200,7 +200,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.floordiv PR07" \ -i "pandas.Series.ge PR07,SA01" \ -i "pandas.Series.gt PR07,SA01" \ - -i "pandas.Series.hasnans SA01" \ -i "pandas.Series.kurt RT03,SA01" \ -i "pandas.Series.kurtosis RT03,SA01" \ -i "pandas.Series.le PR07,SA01" \ diff --git a/pandas/core/base.py b/pandas/core/base.py index b699c43088f98..bee9b3f13c593 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -909,6 +909,11 @@ def hasnans(self) -> bool: ------- bool + See Also + -------- + Series.isna : Detect missing values. + Series.notna : Detect existing (non-missing) values. + Examples -------- >>> s = pd.Series([1, 2, 3, None])