pandas.api.typing.Rolling.cov
pandas 3.1.1 · Window operations · method
Estimate how pairs of numeric inputs vary together from aligned observations.
Call syntax
pd.api.typing.Rolling.cov(other=None, pairwise=None, ddof=1, numeric_only=False)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
other |
Optional Positional or keyword Default None |
Series or DataFrame Supply the second object or value used in the operation. |
pairwise |
Optional Positional or keyword Default None |
bool Choose whether to compare all eligible column pairs. |
ddof |
Optional Positional or keyword Default 1 |
int Set the degrees of freedom correction. The usual variance divisor is N minus ddof. |
numeric_only |
Optional Positional or keyword Default False |
bool Restrict the calculation to columns pandas considers numeric where applicable. |
Returns
Series or DataFrame