Skip to content

Commit 2717358

Browse files
committed
"pandas-dev#45443 edited the documentation of where/mask functions"
1 parent 028d0d6 commit 2717358

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/generic.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9570,7 +9570,9 @@ def where(
95709570
----------
95719571
cond : bool {klass}, array-like, or callable
95729572
Where `cond` is {cond}, keep the original value. Where
9573-
{cond_rev}, replace with corresponding value from `other`.
9573+
{cond_rev}, replace with corresponding value from `other`.
9574+
if `cond` {klass} is less in size than `other`, the default bool
9575+
for the missing value is {cond_rev}.
95749576
If `cond` is callable, it is computed on the {klass} and
95759577
should return boolean {klass} or array. The callable must
95769578
not change input {klass} (though pandas doesn't check it).

0 commit comments

Comments
 (0)