{
  "name": "Python time series workflow: task to statsmodels function map",
  "description": "Maps each step of a Python time series workflow to the library function, import path and key parameters documented in the current statsmodels and pandas documentation, compiled from the official reference pages.",
  "page": "https://casrai.org/guides/time-series-analysis-in-python",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-16T21:57:42Z",
  "temporalCoverage": "2026",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Task",
      "unit": "",
      "description": ""
    },
    {
      "name": "Function",
      "unit": "",
      "description": ""
    },
    {
      "name": "Import path",
      "unit": "",
      "description": ""
    },
    {
      "name": "Key parameters",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Task": "Convert dates",
      "Function": "pd.to_datetime",
      "Import path": "pandas",
      "Key parameters": "errors='coerce' gives NaT for unparseable entries"
    },
    {
      "Task": "Decompose",
      "Function": "seasonal_decompose",
      "Import path": "statsmodels.tsa.seasonal",
      "Key parameters": "model='additive' or 'multiplicative'; period required if index has no frequency"
    },
    {
      "Task": "Autocorrelation plot",
      "Function": "plot_acf",
      "Import path": "statsmodels.graphics.tsaplots",
      "Key parameters": "lags; alpha=0.05 (keyword-only)"
    },
    {
      "Task": "Stationarity test",
      "Function": "adfuller",
      "Import path": "statsmodels.tsa.stattools",
      "Key parameters": "regression c/ct/ctt/n; autolag AIC/BIC/t-stat/None; result_object=True"
    },
    {
      "Task": "ARIMA fit",
      "Function": "ARIMA",
      "Import path": "statsmodels.tsa.arima.model",
      "Key parameters": "order=(p,d,q); seasonal_order=(P,D,Q,s) with s>1; trend n/c/t/ct"
    },
    {
      "Task": "Seasonal ARIMA",
      "Function": "SARIMAX",
      "Import path": "statsmodels.tsa.statespace.sarimax",
      "Key parameters": "listed in the statsmodels tsa reference"
    },
    {
      "Task": "Forecast",
      "Function": "get_forecast",
      "Import path": "results object of the fitted model",
      "Key parameters": "steps; returns forecasts and prediction intervals"
    }
  ],
  "sources": [
    {
      "title": "statsmodels tsa reference (0.15.0)",
      "url": "https://www.statsmodels.org/stable/tsa.html",
      "accessed": "2026-11-15"
    },
    {
      "title": "statsmodels adfuller",
      "url": "https://www.statsmodels.org/stable/generated/statsmodels.tsa.stattools.adfuller.html",
      "accessed": "2026-11-15"
    },
    {
      "title": "statsmodels seasonal_decompose",
      "url": "https://www.statsmodels.org/stable/generated/statsmodels.tsa.seasonal.seasonal_decompose.html",
      "accessed": "2026-11-15"
    },
    {
      "title": "statsmodels ARIMA",
      "url": "https://www.statsmodels.org/stable/generated/statsmodels.tsa.arima.model.ARIMA.html",
      "accessed": "2026-11-15"
    },
    {
      "title": "statsmodels plot_acf",
      "url": "https://www.statsmodels.org/stable/generated/statsmodels.graphics.tsaplots.plot_acf.html",
      "accessed": "2026-11-15"
    },
    {
      "title": "pandas time series user guide",
      "url": "https://pandas.pydata.org/docs/user_guide/timeseries.html",
      "accessed": "2026-11-15"
    }
  ]
}