Skip to content

Commit 60de53c

Browse files
committed
avoid infinite recursion
1 parent 389ebcd commit 60de53c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/internals/blocks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -999,8 +999,8 @@ def putmask(self, mask, new, align=True, inplace=False, axis=0,
999999
if not (mask.shape[-1] == len(new) or
10001000
mask[mask].shape[-1] == len(new) or
10011001
len(new) == 1):
1002-
raise ValueError("cannot assign mismatch "
1003-
"length to masked array")
1002+
raise NotImplementedError("cannot assign mismatch "
1003+
"length to masked array")
10041004

10051005
np.putmask(new_values, mask, new)
10061006

0 commit comments

Comments
 (0)