diff --git a/pandas/core/computation/expressions.py b/pandas/core/computation/expressions.py index 43b6a6fb64314..8205534c9d48b 100644 --- a/pandas/core/computation/expressions.py +++ b/pandas/core/computation/expressions.py @@ -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