Skip to content

Commit

Permalink
PERF: numexpr doesn't support floordiv, so don't try (pandas-dev#40727)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche authored and JulianWgs committed Jul 3, 2021
1 parent 7d235a4 commit 4902011
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pandas/core/computation/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ def _evaluate_numexpr(op, op_str, a, b):
roperator.rsub: "-",
operator.truediv: "/",
roperator.rtruediv: "/",
operator.floordiv: "//",
roperator.rfloordiv: "//",
# floordiv not supported by numexpr 2.x
operator.floordiv: None,
roperator.rfloordiv: None,
# we require Python semantics for mod of negative for backwards compatibility
# see https://github.com/pydata/numexpr/issues/365
# so sticking with unaccelerated for now
Expand Down

0 comments on commit 4902011

Please sign in to comment.