We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 028d0d6 commit 2717358Copy full SHA for 2717358
pandas/core/generic.py
@@ -9570,7 +9570,9 @@ def where(
9570
----------
9571
cond : bool {klass}, array-like, or callable
9572
Where `cond` is {cond}, keep the original value. Where
9573
- {cond_rev}, replace with corresponding value from `other`.
+ {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}.
9576
If `cond` is callable, it is computed on the {klass} and
9577
should return boolean {klass} or array. The callable must
9578
not change input {klass} (though pandas doesn't check it).
0 commit comments