From 9ff2c6b8cb11963a9c63fb01791e093cb09260ce Mon Sep 17 00:00:00 2001 From: shriyakalakata <87483933+shriyakalakata@users.noreply.github.com> Date: Fri, 3 May 2024 16:28:42 -0400 Subject: [PATCH] DOC: Fix SA01 Errors (#58556) * Fix SA01 errors * Fix SA01 errors --- ci/code_checks.sh | 3 --- pandas/core/base.py | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 1e5bf5af7e057..936e3664cfe93 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -200,9 +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.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..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]) @@ -1135,6 +1140,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 +1168,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])