pandas.Series.autocorr
pandas 3.1.1 · Series and accessors · method
Correlate a Series with its own lagged values using the specified number of periods.
Call syntax
Series.autocorr(lag=1)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
lag |
Optional Positional or keyword Default 1 |
int |
Returns
float