@@ -190,10 +190,10 @@ class DataConflictError(Exception):
190
190
# Factory helper methods
191
191
192
192
193
- def _arith_method (op , name , str_rep = None , default_axis = 'columns' , fill_zeros = None ):
193
+ def _arith_method (op , name , str_rep = None , default_axis = 'columns' , fill_zeros = None , ** eval_kwargs ):
194
194
def na_op (x , y ):
195
195
try :
196
- result = expressions .evaluate (op , str_rep , x , y , raise_on_error = True )
196
+ result = expressions .evaluate (op , str_rep , x , y , raise_on_error = True , ** eval_kwargs )
197
197
result = com ._fill_zeros (result ,y ,fill_zeros )
198
198
199
199
except TypeError :
@@ -853,7 +853,7 @@ def __contains__(self, key):
853
853
__sub__ = _arith_method (operator .sub , '__sub__' , '-' , default_axis = None )
854
854
__mul__ = _arith_method (operator .mul , '__mul__' , '*' , default_axis = None )
855
855
__truediv__ = _arith_method (operator .truediv , '__truediv__' , '/' ,
856
- default_axis = None , fill_zeros = np .inf )
856
+ default_axis = None , fill_zeros = np .inf , truediv = True )
857
857
__floordiv__ = _arith_method (operator .floordiv , '__floordiv__' ,
858
858
default_axis = None , fill_zeros = np .inf )
859
859
__pow__ = _arith_method (operator .pow , '__pow__' , '**' , default_axis = None )
@@ -879,7 +879,7 @@ def __contains__(self, key):
879
879
# Python 2 division methods
880
880
if not py3compat .PY3 :
881
881
__div__ = _arith_method (operator .div , '__div__' , '/' ,
882
- default_axis = None , fill_zeros = np .inf )
882
+ default_axis = None , fill_zeros = np .inf , truediv = False )
883
883
__rdiv__ = _arith_method (lambda x , y : y / x , '__rdiv__' ,
884
884
default_axis = None , fill_zeros = np .inf )
885
885
0 commit comments