From 613abbd716e7011141107a6d3f1fd5f296e46c57 Mon Sep 17 00:00:00 2001 From: tuhinsharma121 Date: Wed, 8 May 2024 10:09:47 +0530 Subject: [PATCH 1/2] DOC: remove SA01 for pandas.Series.mode --- pandas/core/series.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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]) From a805ceedea26bb23c18d89fce2fc5d1251d065d8 Mon Sep 17 00:00:00 2001 From: tuhinsharma121 Date: Wed, 8 May 2024 10:10:15 +0530 Subject: [PATCH 2/2] DOC: remove SA01 for pandas.Series.mode --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) 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" \