@@ -828,7 +828,7 @@ def f(self, other, axis=default_axis, level=None):
828828 return _combine_series_frame (self , other , op , axis = axis )
829829 else :
830830 # 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 )
832832 return self ._construct_result (new_data )
833833
834834 f .__name__ = op_name
@@ -852,13 +852,15 @@ def f(self, other):
852852 new_data = dispatch_to_series (self , other , op , str_rep )
853853
854854 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+ )
856858
857859 else :
858860
859861 # straight boolean comparisons we want to allow all columns
860862 # (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 )
862864
863865 return self ._construct_result (new_data )
864866
0 commit comments