We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11eb8ab commit 13f28f5Copy full SHA for 13f28f5
pandas/core/ops.py
@@ -1176,6 +1176,13 @@ def na_op(x, y):
1176
yrav = y.ravel()
1177
mask = notnull(xrav) & notnull(yrav)
1178
xrav = xrav[mask]
1179
+
1180
+ # we may need to manually
1181
+ # broadcast a 1 element array
1182
+ if yrav.shape != mask.shape:
1183
+ yrav = np.empty(mask.shape, dtype=yrav.dtype)
1184
+ yrav.fill(yrav.item())
1185
1186
yrav = yrav[mask]
1187
if np.prod(xrav.shape) and np.prod(yrav.shape):
1188
with np.errstate(all='ignore'):
0 commit comments