Skip to content

Commit bbbc720

Browse files
committed
BUG: Fix _where to make np.ndarray mutable. (pandas-dev#60729)
1 parent 558569f commit bbbc720

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/core/generic.py

+1
Original file line numberDiff line numberDiff line change
@@ -9676,6 +9676,7 @@ def _where(
96769676

96779677
# We should not be filling NA. See GH#60729
96789678
if isinstance(cond, np.ndarray):
9679+
cond = np.array(cond)
96799680
cond[np.isnan(cond)] = True
96809681
elif isinstance(cond, NDFrame):
96819682
cond = cond.fillna(True)

0 commit comments

Comments
 (0)