cudf.Series.cov#

Series.cov(other, min_periods=None)[source]#

Compute covariance with Series, excluding missing values.

Parameters:
otherSeries

Series with which to compute the covariance.

Returns:
float

Covariance between Series and other normalized by N-1 (unbiased estimator).

Examples

>>> import cudf
>>> ser1 = cudf.Series([0.9, 0.13, 0.62])
>>> ser2 = cudf.Series([0.12, 0.26, 0.51])
>>> ser1.cov(ser2)
-0.015750000000000004

Pandas Compatibility Note

Series.cov

min_periods parameter is not yet supported.