← Back to examples
🌦️ Monthly Weather Trends
Scenario: A climate journalist has a year of daily temperature observations and wants monthly averages, the hottest month, and a quick visual of the warming curve.
Skills: datetime parsing via the dt accessor, groupby, idxmaxSeries.
1 · Aggregate daily readings into monthly means
Synthetic but realistic year of daily highs in °C.
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent
2 · Visualise the seasonal curve
An ASCII bar chart of monthly averages — a quick health-check before reaching for proper plotting.
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent