Skip to content

Commit 06df02a

Browse files
committed
py3 fix
1 parent 84c74c5 commit 06df02a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/indexes/base.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4186,7 +4186,8 @@ def dispatch_missing(op, left, right, result):
41864186
result : ndarray
41874187
"""
41884188
opstr = '__{opname}__'.format(opname=op.__name__).replace('____', '__')
4189-
if op in [operator.div, operator.truediv, operator.floordiv]:
4189+
if op in [operator.truediv, operator.floordiv,
4190+
getattr(operator, 'div', None)]:
41904191
result = missing.mask_zero_div_zero(left, right, result)
41914192
elif op is operator.mod:
41924193
result = missing.fill_zeros(result, left, right,

0 commit comments

Comments
 (0)