Skip to content

Commit bd331ed

Browse files
DOC: Explicit how 'cond' is updated on 'where' (#56286)
DOC: Make explicit how 'cond' is update on 'where'
1 parent 86ad444 commit bd331ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/generic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10849,8 +10849,8 @@ def where(
1084910849
element in the calling DataFrame, if ``cond`` is ``{cond}`` the
1085010850
element is used; otherwise the corresponding element from the DataFrame
1085110851
``other`` is used. If the axis of ``other`` does not align with axis of
10852-
``cond`` {klass}, the misaligned index positions will be filled with
10853-
{cond_rev}.
10852+
``cond`` {klass}, the values of ``cond`` on misaligned index positions
10853+
will be filled with {cond_rev}.
1085410854
1085510855
The signature for :func:`DataFrame.where` differs from
1085610856
:func:`numpy.where`. Roughly ``df1.where(m, df2)`` is equivalent to

0 commit comments

Comments
 (0)