Skip to content

Commit

Permalink
avoid infinite recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
minggli committed Jul 27, 2018
1 parent 389ebcd commit 60de53c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/internals/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,8 +999,8 @@ def putmask(self, mask, new, align=True, inplace=False, axis=0,
if not (mask.shape[-1] == len(new) or
mask[mask].shape[-1] == len(new) or
len(new) == 1):
raise ValueError("cannot assign mismatch "
"length to masked array")
raise NotImplementedError("cannot assign mismatch "
"length to masked array")

np.putmask(new_values, mask, new)

Expand Down

0 comments on commit 60de53c

Please sign in to comment.