qis.compute_autocorr_df

qis.compute_autocorr_df(df, num_lags=20, axis=0)[source]

lagged Pearson autocorrelation of each column, with the lag as the index.

Lag k correlates x[k:] with x[:-k] over the overlapping observations, each segment with its own mean; lag 0 is one by definition. Missing values are not handled.

Parameters:
  • df (Series | DataFrame) – observations in rows, one series per column

  • num_lags (int) – number of lags returned, from 0 to num_lags - 1

  • axis (int) – retained for compatibility; the computation is always along the rows

Returns:

autocorrelations indexed by lag, as a Series for a Series input

Return type:

DataFrame