diff --git a/pandas/core/series.py b/pandas/core/series.py index a72eb8e261e65..c1920312489c9 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -5359,6 +5359,8 @@ def case_when( """ Replace values where the conditions are True. + .. versionadded:: 2.2.0 + Parameters ---------- caselist : A list of tuples of conditions and expected replacements @@ -5376,8 +5378,6 @@ def case_when( must not change the input Series (though pandas doesn`t check it). - .. versionadded:: 2.2.0 - Returns ------- Series