Skip to content

Commit 0129c68

Browse files
committed
BUG (string dtype): comparison of string column to mixed object column fails pandas-dev#60228
1 parent 104a60f commit 0129c68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/core/ops/array_ops.py

+1
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ def comparison_op(left: ArrayLike, right: Any, op) -> ArrayLike:
335335
rvalues = rvalues.astype("string")
336336
lvalues = pd_array(lvalues, dtype="string")
337337

338+
338339
if should_extension_dispatch(lvalues, rvalues) or (
339340
(isinstance(rvalues, (Timedelta, BaseOffset, Timestamp)) or right is NaT)
340341
and lvalues.dtype != object

0 commit comments

Comments
 (0)