code: def pacf_2d(
      data: pd.Series,
      lags: int = 40,
      method: str = "ywadjusted",
      alpha: float = 0.05,
  ) -> pd.DataFrame:
      """Calculates the partial 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.pacf.html
      """
      return _pacf(data, 2, lags=lags, method=method, alpha=alpha)
  
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 9 for calling a global function with example usage: pacf_2d(data, lags, method, alpha) and returns: _pacf