bigframes.geopandas.GeoSeries.cov#

GeoSeries.cov(other: Series) float#

Compute covariance with Series, excluding missing values.

The two Series objects are not required to be the same length and will be aligned internally before the covariance is calculated.

Examples:

>>> s1 = bpd.Series([0.90010907, 0.13484424, 0.62036035])
>>> s2 = bpd.Series([0.12528585, 0.26962463, 0.51111198])
>>> s1.cov(s2)
np.float64(-0.01685762652715874)
Parameters:

other (Series) – Series with which to compute the covariance.

Returns:

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

Return type:

float