Skip to content

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