diff --git a/pandas/core/series.py b/pandas/core/series.py index 4194cbd4e4156..b6e1448514112 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -110,7 +110,10 @@ def na_op(x, y): y = lib.list_to_object_array(y) if isinstance(y, np.ndarray): - result = lib.vec_compare(x, y, op) + if y.dtype != np.object_: + result = lib.vec_compare(x, y.astype(np.object_), op) + else: + result = lib.vec_compare(x, y, op) else: result = lib.scalar_compare(x, y, op) else: