We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e3fd3a commit 8c5ffffCopy full SHA for 8c5ffff
pandas/core/generic.py
@@ -9714,7 +9714,7 @@ def _where(
9714
if not hasattr(cond, "shape"):
9715
cond = np.asanyarray(cond)
9716
else:
9717
- cond = np.array(cond)
+ cond = extract_array(cond, extract_numpy=True)
9718
cond[isna(cond)] = True
9719
if cond.shape != self.shape:
9720
raise ValueError("Array conditional must be same shape as self")
0 commit comments