Skip to content

Commit 76710ff

Browse files
wjandreapmhatre1
authored andcommitted
DOC: Fix "versionadded" for case_when (pandas-dev#58426)
Fix "versionadded" for case_when Tag was on parameter instead of function itself.
1 parent d2a50f8 commit 76710ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/series.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5359,6 +5359,8 @@ def case_when(
53595359
"""
53605360
Replace values where the conditions are True.
53615361
5362+
.. versionadded:: 2.2.0
5363+
53625364
Parameters
53635365
----------
53645366
caselist : A list of tuples of conditions and expected replacements
@@ -5376,8 +5378,6 @@ def case_when(
53765378
must not change the input Series
53775379
(though pandas doesn`t check it).
53785380
5379-
.. versionadded:: 2.2.0
5380-
53815381
Returns
53825382
-------
53835383
Series

0 commit comments

Comments
 (0)