Skip to content

pd.Series.rmod

pandas.Series.rmod(other, level=None, fill_value=None, axis=0)

支持的参数

参数 数据类型
other
  • 数值标量
  • 具有数值数据的数组
  • 具有数值数据的序列
fill_value 数值标量

注意

Series.rmod 仅支持数值数据的系列。

示例用法

>>> @bodo.jit
... def f(S, other):
...   return S.rmod(other)
>>> S = pd.Series(np.arange(1, 1001))
>>> other = pd.Series(reversed(np.arange(1, 1001)))
>>> f(S, other)
0      0
1      1
2      2
3      1
4      1
      ..
995    5
996    4
997    3
998    2
999    1
Length: 1000, dtype: int64