We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e721b64 commit a591078Copy full SHA for a591078
pandas/core/ops.py
@@ -1199,8 +1199,7 @@ def na_op(x, y):
1199
except TypeError:
1200
assert not isinstance(y, (list, ABCSeries, pd.Index))
1201
if isinstance(y, np.ndarray):
1202
- # This next assertion is here because there used to be
1203
- # a branch that specifically caught this case.
+ # bool-bool dtype operations should be OK, should not get here
1204
assert not (is_bool_dtype(x) and is_bool_dtype(y))
1205
x = _ensure_object(x)
1206
y = _ensure_object(y)
0 commit comments