Skip to content

Commit d3ae818

Browse files
authored
Revert "PERF: numexpr doesn't support floordiv, so don't try (#40727)" (#40742)
This reverts commit e6f7e7b.
1 parent e1dd032 commit d3ae818

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/core/computation/expressions.py

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

0 commit comments

Comments
 (0)