Skip to content

Instantly share code, notes, and snippets.

@SermetPekin
Created September 18, 2026 07:22
Show Gist options
  • Select an option

  • Save SermetPekin/a0ea9f62ff0a7c92965591ca4d24bd8d to your computer and use it in GitHub Desktop.

Select an option

Save SermetPekin/a0ea9f62ff0a7c92965591ca4d24bd8d to your computer and use it in GitHub Desktop.
Usage example of demetrapy
from demetrapy import TramoSeatsConfig, adjust_dataframe, load_monthly_emissions
data = load_monthly_emissions()
result = adjust_dataframe(
data,
config=TramoSeatsConfig(
spec="RSAfull",
preprocessing={"automodel": {"enabled": True}},
seats={"prediction_length": 12},
),
detailed=True,
)
adjusted = result.seasonally_adjusted
forecasts = result.to_forecast_frame()
model = result.for_series("power").arima_model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment