Skip to content

Commit e6f7e7b

Browse files
PERF: numexpr doesn't support floordiv, so don't try (#40727)
1 parent 389a04b commit e6f7e7b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/computation/expressions.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ def _evaluate_numexpr(op, op_str, a, b):
128128
roperator.rsub: "-",
129129
operator.truediv: "/",
130130
roperator.rtruediv: "/",
131-
operator.floordiv: "//",
132-
roperator.rfloordiv: "//",
131+
# floordiv not supported by numexpr 2.x
132+
operator.floordiv: None,
133+
roperator.rfloordiv: None,
133134
# we require Python semantics for mod of negative for backwards compatibility
134135
# see https://github.com/pydata/numexpr/issues/365
135136
# so sticking with unaccelerated for now

0 commit comments

Comments
 (0)