Skip to content

Commit 8c0f63d

Browse files
jorisvandenbosscheJulianWgs
authored andcommitted
PERF: numexpr doesn't support floordiv, so don't try (pandas-dev#41163)
1 parent bae5bbe commit 8c0f63d

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)