Skip to content

Commit a832418

Browse files
committed
BUG (string dtype): comparison of string column to mixed object column fails pandas-dev#60228
1 parent 89e2efc commit a832418

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
@@ -333,6 +333,7 @@ def comparison_op(left: ArrayLike, right: Any, op) -> ArrayLike:
333333
rvalues = rvalues.astype("string")
334334
lvalues = array(lvalues, dtype="string")
335335

336+
336337
if should_extension_dispatch(lvalues, rvalues) or (
337338
(isinstance(rvalues, (Timedelta, BaseOffset, Timestamp)) or right is NaT)
338339
and lvalues.dtype != object

0 commit comments

Comments
 (0)