@@ -5078,7 +5078,7 @@ def _cmp_method(self, other, op):
5078
5078
raise ValueError ("Can only compare identically-labeled Series objects" )
5079
5079
5080
5080
lvalues = self ._values
5081
- rvalues = extract_array (other , extract_numpy = True )
5081
+ rvalues = extract_array (other , extract_numpy = True , extract_range = True )
5082
5082
5083
5083
with np .errstate (all = "ignore" ):
5084
5084
res_values = ops .comparison_op (lvalues , rvalues , op )
@@ -5090,7 +5090,7 @@ def _logical_method(self, other, op):
5090
5090
self , other = ops .align_method_SERIES (self , other , align_asobject = True )
5091
5091
5092
5092
lvalues = self ._values
5093
- rvalues = extract_array (other , extract_numpy = True )
5093
+ rvalues = extract_array (other , extract_numpy = True , extract_range = True )
5094
5094
5095
5095
res_values = ops .logical_op (lvalues , rvalues , op )
5096
5096
return self ._construct_result (res_values , name = res_name )
@@ -5100,7 +5100,8 @@ def _arith_method(self, other, op):
5100
5100
self , other = ops .align_method_SERIES (self , other )
5101
5101
5102
5102
lvalues = self ._values
5103
- rvalues = extract_array (other , extract_numpy = True )
5103
+ rvalues = extract_array (other , extract_numpy = True , extract_range = True )
5104
+
5104
5105
with np .errstate (all = "ignore" ):
5105
5106
result = ops .arithmetic_op (lvalues , rvalues , op )
5106
5107
0 commit comments