diff --git a/ci/code_checks.sh b/ci/code_checks.sh index f34f0690196ed..2fafbfd193ee7 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -192,7 +192,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.list.flatten SA01" \ -i "pandas.Series.list.len SA01" \ -i "pandas.Series.lt PR07,SA01" \ - -i "pandas.Series.mode SA01" \ -i "pandas.Series.ne PR07,SA01" \ -i "pandas.Series.pad PR01,SA01" \ -i "pandas.Series.plot PR02,SA01" \ diff --git a/pandas/core/series.py b/pandas/core/series.py index 1ab9aa068fa25..224f595e90e30 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1957,6 +1957,16 @@ def mode(self, dropna: bool = True) -> Series: Series Modes of the Series in sorted order. + See Also + -------- + numpy.mode : Equivalent numpy function for computing median. + Series.sum : Sum of the values. + Series.median : Median of the values. + Series.std : Standard deviation of the values. + Series.var : Variance of the values. + Series.min : Minimum value. + Series.max : Maximum value. + Examples -------- >>> s = pd.Series([2, 4, 2, 2, 4, None])