Skip to content

Commit 941fccb

Browse files
committed
negative mask if no match or na
1 parent c97b2ee commit 941fccb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/core/missing.py

+3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ def mask_missing(arr, values_to_mask):
6868
else:
6969
mask |= isna(arr)
7070

71+
if mask is None:
72+
mask = np.zeros(arr.shape, dtype=bool)
73+
7174
return mask
7275

7376

0 commit comments

Comments
 (0)