pd.Series.cov
pandas.Series.cov(other, min_periods=None, ddof=1)
支持的参数
| 参数 |
数据类型 |
other |
- 数字序列或数组 |
ddof |
- 整数 |
示例用法
>>> @bodo.jit
... def f(S, other):
... return S.cov(other)
>>> S = pd.Series(np.arange(100)) % 7
>>> other = pd.Series(np.arange(100)) % 10
>>> f(S, other)
0.025252525252525252