pandas.api.typing.ExponentialMovingWindow.corr

pandas 3.1.1 · Window operations · method

Calculate correlation coefficients between numeric inputs. A DataFrame can produce a column-by-column matrix.

Call syntax

pd.api.typing.ExponentialMovingWindow.corr(other=None, pairwise=None, numeric_only=False)

Run the example

Edit the example and select Run Python to see the result.

Parameters

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

numeric_only Optional
Positional or keyword
Default False
bool

Restrict the calculation to columns pandas considers numeric where applicable.

Returns

Series or DataFrame