From 0adfcca6342015127f3ae64c02aaa92179019344 Mon Sep 17 00:00:00 2001 From: cloudboat <15851404+cloudboat111@user.noreply.gitee.com> Date: Thu, 27 Nov 2025 00:04:30 +0800 Subject: [PATCH] DOC:Update mask parameter type in Index.putmask from np.ndarray[bool] to array-like of bool --- pandas/core/indexes/base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 0f9938916b8df..81648dcf09d0f 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -5406,9 +5406,8 @@ def putmask(self, mask, value) -> Index: Parameters ---------- - mask : np.ndarray[bool] - Array of booleans denoting where values in the original - data are not ``NA``. + mask : array-like of bool + Array of booleans denoting where values should be replaced. value : scalar Scalar value to use to fill holes (e.g. 0). This value cannot be a list-likes.