Skip to content

Commit b70e080

Browse files
PERF: numexpr doesn't support floordiv, so don't try (#41163)
1 parent d7b5a10 commit b70e080

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
@@ -142,8 +142,9 @@ def _evaluate_numexpr(op, op_str, a, b):
142142
roperator.rsub: "-",
143143
operator.truediv: "/",
144144
roperator.rtruediv: "/",
145-
operator.floordiv: "//",
146-
roperator.rfloordiv: "//",
145+
# floordiv not supported by numexpr 2.x
146+
operator.floordiv: None,
147+
roperator.rfloordiv: None,
147148
# we require Python semantics for mod of negative for backwards compatibility
148149
# see https://github.com/pydata/numexpr/issues/365
149150
# so sticking with unaccelerated for now

0 commit comments

Comments
 (0)