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])