code: def acf_1d(
      data: pd.Series,
      lags: int = 40,
      adjusted: bool = False,
      fft: bool = False,
      alpha: float = 0.05,
      missing: str = "none",
  ) -> pd.DataFrame:
      """Calculates the autocorrelation function on 1-differenced data.
  
      Returns:
          pd.DataFrame: DataFrame with 4 columns: lag, correlation, low and up.
  
      See Also:
          https://www.statsmodels.org/stable/generated/statsmodels.tsa.stattools.acf.html
      """
      return _acf(
          data,
          1,
          lags=lags,
          adjusted=adjusted,
          fft=fft,
          alpha=alpha,
          missing=missing,
      )
  
file_path: tslumen/tslumen/profile/correlation.py
imports: from typing import Optional, Tuple
  import numpy
  import pandas
  from statsmodels.tsa import stattools
  from tslumen.profile.base import ProfilingFunction
label_desc: Use image node_id 5 for calling a global function with example usage: acf_1d(data, lags, adjusted, fft, alpha, missing) and returns: _acf