Skip to content

Commit b3ae4c7

Browse files
gfyoungjorisvandenbossche
authored andcommitted
DOC: Fix versionadded for cond in .where (pandas-dev#15509)
[ci skip]
1 parent 303541e commit b3ae4c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/generic.py

+2
Original file line numberDiff line numberDiff line change
@@ -4910,13 +4910,15 @@ def _where(self, cond, other=np.nan, inplace=False, axis=None, level=None,
49104910
not change input %(klass)s (though pandas doesn't check it).
49114911
49124912
.. versionadded:: 0.18.1
4913+
A callable can be used as cond.
49134914
49144915
other : scalar, %(klass)s, or callable
49154916
If other is callable, it is computed on the %(klass)s and
49164917
should return scalar or %(klass)s. The callable must not
49174918
change input %(klass)s (though pandas doesn't check it).
49184919
49194920
.. versionadded:: 0.18.1
4921+
A callable can be used as other.
49204922
49214923
inplace : boolean, default False
49224924
Whether to perform the operation in place on the data

0 commit comments

Comments
 (0)