@@ -828,7 +828,7 @@ def f(self, other, axis=default_axis, level=None):
828
828
return _combine_series_frame (self , other , op , axis = axis )
829
829
else :
830
830
# in this case we always have `np.ndim(other) == 0`
831
- new_data = dispatch_to_series (self , other , op )
831
+ new_data = dispatch_to_series (self , other , op , str_rep )
832
832
return self ._construct_result (new_data )
833
833
834
834
f .__name__ = op_name
@@ -852,13 +852,15 @@ def f(self, other):
852
852
new_data = dispatch_to_series (self , other , op , str_rep )
853
853
854
854
elif isinstance (other , ABCSeries ):
855
- new_data = dispatch_to_series (self , other , op , axis = "columns" )
855
+ new_data = dispatch_to_series (
856
+ self , other , op , str_rep = str_rep , axis = "columns"
857
+ )
856
858
857
859
else :
858
860
859
861
# straight boolean comparisons we want to allow all columns
860
862
# (regardless of dtype to pass thru) See #4537 for discussion.
861
- new_data = dispatch_to_series (self , other , op )
863
+ new_data = dispatch_to_series (self , other , op , str_rep )
862
864
863
865
return self ._construct_result (new_data )
864
866
0 commit comments