@@ -5078,7 +5078,7 @@ def _cmp_method(self, other, op):
50785078 raise ValueError ("Can only compare identically-labeled Series objects" )
50795079
50805080 lvalues = self ._values
5081- rvalues = extract_array (other , extract_numpy = True )
5081+ rvalues = extract_array (other , extract_numpy = True , extract_range = True )
50825082
50835083 with np .errstate (all = "ignore" ):
50845084 res_values = ops .comparison_op (lvalues , rvalues , op )
@@ -5090,7 +5090,7 @@ def _logical_method(self, other, op):
50905090 self , other = ops .align_method_SERIES (self , other , align_asobject = True )
50915091
50925092 lvalues = self ._values
5093- rvalues = extract_array (other , extract_numpy = True )
5093+ rvalues = extract_array (other , extract_numpy = True , extract_range = True )
50945094
50955095 res_values = ops .logical_op (lvalues , rvalues , op )
50965096 return self ._construct_result (res_values , name = res_name )
@@ -5100,7 +5100,8 @@ def _arith_method(self, other, op):
51005100 self , other = ops .align_method_SERIES (self , other )
51015101
51025102 lvalues = self ._values
5103- rvalues = extract_array (other , extract_numpy = True )
5103+ rvalues = extract_array (other , extract_numpy = True , extract_range = True )
5104+
51045105 with np .errstate (all = "ignore" ):
51055106 result = ops .arithmetic_op (lvalues , rvalues , op )
51065107
0 commit comments