Created
September 18, 2026 07:22
-
-
Save SermetPekin/a0ea9f62ff0a7c92965591ca4d24bd8d to your computer and use it in GitHub Desktop.
Usage example of demetrapy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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