Skip to content

Commit

Permalink
Revert "PERF: numexpr doesn't support floordiv, so don't try (pandas-…
Browse files Browse the repository at this point in the history
…dev#40727)"

This reverts commit e6f7e7b.
  • Loading branch information
jreback committed Apr 1, 2021
1 parent e1dd032 commit 476a566
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pandas/core/computation/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@ def _evaluate_numexpr(op, op_str, a, b):
roperator.rsub: "-",
operator.truediv: "/",
roperator.rtruediv: "/",
# floordiv not supported by numexpr 2.x
operator.floordiv: None,
roperator.rfloordiv: None,
operator.floordiv: "//",
roperator.rfloordiv: "//",
# 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 476a566

Please sign in to comment.