Skip to content

Commit 8c5ffff

Browse files
Update generic.py
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 7e3fd3a commit 8c5ffff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9714,7 +9714,7 @@ def _where(
97149714
if not hasattr(cond, "shape"):
97159715
cond = np.asanyarray(cond)
97169716
else:
9717-
cond = np.array(cond)
9717+
cond = extract_array(cond, extract_numpy=True)
97189718
cond[isna(cond)] = True
97199719
if cond.shape != self.shape:
97209720
raise ValueError("Array conditional must be same shape as self")

0 commit comments

Comments
 (0)