Skip to content

Commit ee3c726

Browse files
committed
Remove deprecated usage of np.bool
1 parent 7708be0 commit ee3c726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/numeric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def __init__(
265265
f"values should be {descr} numpy array. Use "
266266
"the 'pd.array' function instead"
267267
)
268-
if not (isinstance(mask, np.ndarray) and mask.dtype == np.bool):
268+
if not (isinstance(mask, np.ndarray) and mask.dtype == np.bool_):
269269
raise TypeError(
270270
"mask should be bool numpy array. Use the 'pd.array' function instead"
271271
)

0 commit comments

Comments
 (0)