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 eed6121 commit 9ac81f0Copy full SHA for 9ac81f0
pandas/core/generic.py
@@ -9713,6 +9713,8 @@ def _where(
9713
else:
9714
if not hasattr(cond, "shape"):
9715
cond = np.asanyarray(cond)
9716
+ else:
9717
+ cond = np.array(cond)
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