Skip to content

Commit 0adfcca

Browse files
author
cloudboat
committed
DOC:Update mask parameter type in Index.putmask from np.ndarray[bool] to array-like of bool
1 parent 95624ca commit 0adfcca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/core/indexes/base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5406,9 +5406,8 @@ def putmask(self, mask, value) -> Index:
54065406
54075407
Parameters
54085408
----------
5409-
mask : np.ndarray[bool]
5410-
Array of booleans denoting where values in the original
5411-
data are not ``NA``.
5409+
mask : array-like of bool
5410+
Array of booleans denoting where values should be replaced.
54125411
value : scalar
54135412
Scalar value to use to fill holes (e.g. 0).
54145413
This value cannot be a list-likes.

0 commit comments

Comments
 (0)