pandas.Series.cov

Series.cov(other, min_periods=None)

Compute covariance with Series, excluding missing values

other : Series min_periods : int, optional

Minimum number of observations needed to have a valid result

covariance : float

Normalized by N-1 (unbiased estimator).