pandas.Series.autocorr

Series.autocorr(lag=1)

Lag-N autocorrelation

Parameters:

lag : int, default 1

Number of lags to apply before performing autocorrelation.

Returns:

autocorr : float