From 80286a55c91a1a15a70e38eba44ca09cda017fab Mon Sep 17 00:00:00 2001 From: Marco Barbosa Date: Fri, 1 Dec 2023 15:20:05 -0300 Subject: [PATCH] DOC: Make explicit how 'cond' is update on 'where' --- pandas/core/generic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index ced930b936ba5..98b14d045d491 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10735,8 +10735,8 @@ def where( element in the calling DataFrame, if ``cond`` is ``{cond}`` the element is used; otherwise the corresponding element from the DataFrame ``other`` is used. If the axis of ``other`` does not align with axis of - ``cond`` {klass}, the misaligned index positions will be filled with - {cond_rev}. + ``cond`` {klass}, the values of ``cond`` on misaligned index positions + will be filled with {cond_rev}. The signature for :func:`DataFrame.where` differs from :func:`numpy.where`. Roughly ``df1.where(m, df2)`` is equivalent to