{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "unit8co-darts--forecast-a-series-with-darts-exponential-smoothing",
 "repo": "unit8co/darts",
 "repo_url": "https://github.com/unit8co/darts",
 "repo_slug": "unit8co-darts",
 "title": "Get a probabilistic forecast in a few lines",
 "page_title": "How to get a probabilistic forecast in a few lines with Darts",
 "summary": "Build a TimeSeries from a DataFrame, fit a model and predict with sampled uncertainty.",
 "who": "An analyst with a CSV who needs a forecast and a confidence band.",
 "problem": "Stitching together statsmodels and plotting code takes longer than the forecast is worth.",
 "outcome": "A forecast with median and percentile bands plotted over the history.",
 "steps": [
  "Install it with `pip install darts`",
  "Create the series with TimeSeries.from_dataframe, naming the time column and the value column",
  "Split it, for example with `train, val = series[:-36], series[-36:]`, then fit ExponentialSmoothing and call model.predict(len(val), num_samples=1000)",
  "Plot with series.plot() and prediction.plot(label=\"forecast\", low_quantile=0.05, high_quantile=0.95)"
 ],
 "agent_prompt": "Using unit8co/darts, load <my CSV> with TimeSeries.from_dataframe, hold out the last 36 points, fit ExponentialSmoothing with 1000 samples and save a chart with the 5th and 95th percentiles.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Beginner",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README recommends a clean Python 3.11 or newer environment before installing.",
 "category": "Data and analytics",
 "tags": [
  "Data and analytics"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.11 or newer, ideally in a clean environment",
  "`pip install darts`",
  "Your series as a pandas DataFrame or one of the supported backends"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/unit8co-darts/forecast-a-series-with-darts-exponential-smoothing/",
 "md": "https://dedupedai.com/use-cases/unit8co-darts/forecast-a-series-with-darts-exponential-smoothing/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/unit8co-darts--forecast-a-series-with-darts-exponential-smoothing.json",
 "api_version": "v1"
}
