/usr/local/lib64/python3.6/site-packages/pandas/core/ops
NameSizeModeActions
__pycache__/-0755rm
array_ops.py154120644editdlrm
common.py16530644editdlrm
dispatch.py5490644editdlrm
docstrings.py180250644editdlrm
invalid.py12850644editdlrm
mask_ops.py49350644editdlrm
methods.py75940644editdlrm
missing.py51640644editdlrm
roperator.py10800644editdlrm
__init__.py213160644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/pandas/core/ops/roperator.py (1080B)
""" Reversed Operations not available in the stdlib operator module. Defining these instead of using lambdas allows us to reference them by name. """ import operator def radd(left, right): return right + left def rsub(left, right): return right - left def rmul(left, right): return right * left def rdiv(left, right): return right / left def rtruediv(left, right): return right / left def rfloordiv(left, right): return right // left def rmod(left, right): # check if right is a string as % is the string # formatting operation; this is a TypeError # otherwise perform the op if isinstance(right, str): typ = type(left).__name__ raise TypeError(f"{typ} cannot perform the operation mod") return right % left def rdivmod(left, right): return divmod(right, left) def rpow(left, right): return right ** left def rand_(left, right): return operator.and_(right, left) def ror_(left, right): return operator.or_(right, left) def rxor(left, right): return operator.xor(right, left)