From f62c1cf8d0453b1f2296715c35e1692493b570e1 Mon Sep 17 00:00:00 2001 From: Jeff Reback Date: Thu, 31 May 2018 06:34:32 -0400 Subject: [PATCH] add rmod --- pandas/core/arrays/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index 0f718788c05c0..04bf3bb8a06c3 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -681,6 +681,7 @@ def _add_numeric_methods_binary(cls): cls.__rpow__ = cls._make_arithmetic_op(ops.rpow) cls.__pow__ = cls._make_arithmetic_op(operator.pow) cls.__mod__ = cls._make_arithmetic_op(operator.mod) + cls.__rmod__ = cls._make_arithmetic_op(ops.rmod) cls.__floordiv__ = cls._make_arithmetic_op(operator.floordiv) cls.__rfloordiv__ = cls._make_arithmetic_op(ops.rfloordiv) cls.__truediv__ = cls._make_arithmetic_op(operator.truediv)