hipdf.Series.cov

Contents

hipdf.Series.cov#

20 min read time

Applies to Linux

Series.cov(other, min_periods=None)#

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).

Notes#

min_periods parameter is not yet supported.

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