From aa77f0250b84ac45b3453a2975aa953253f21a7c Mon Sep 17 00:00:00 2001 From: William Andrea <22385371+wjandrea@users.noreply.github.com> Date: Thu, 25 Apr 2024 13:42:56 -0400 Subject: [PATCH] Fix "versionadded" for case_when Tag was on parameter instead of function itself. --- pandas/core/series.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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