diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 24321f8ef54f7..7fa8bdc08085c 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -138,7 +138,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.RangeIndex.start SA01" \ -i "pandas.RangeIndex.step SA01" \ -i "pandas.RangeIndex.stop SA01" \ - -i "pandas.Series.case_when RT03" \ -i "pandas.Series.cat.add_categories PR01,PR02" \ -i "pandas.Series.cat.as_ordered PR01" \ -i "pandas.Series.cat.as_unordered PR01" \ diff --git a/pandas/core/series.py b/pandas/core/series.py index 60c01ae7d1141..db3b170b204a0 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -5324,6 +5324,7 @@ def case_when( Returns ------- Series + A new Series with values replaced based on the provided conditions. See Also --------