Project 12 of 12, for Yahya
Data Story
The Act V capstone: a data story. A century of the station book cleaned once, summed up honestly, drawn fairly, written up and published as a web page; then a story of your own, from a public dataset of your choice.
Act 5 needs a free account, so your work is saved as you go. Act 1 is open to everyone.
The brief
- YahyaThis is a hundred years of the Clocktower's station book, and I want it read properly, once, and written up.
- YahyaI want what changed, how sure we are and what didn't change, because that last part always gets left out.
- YahyaThe ledger's just as the volunteers typed it, in Fahrenheit until 1960 and with some pages in twice.
- PaulDo it as four files with one job each, then the words, and then a page anyone can open.
ledger.csv is the station book as it was typed: one row per month from 1925 to 2024, with the month, the temperature and the unit it was written in, the rain in millimetres and the hours of sunshine.
Build the report in four files. Each one's requirements are at the top of it.
station.pycleans the ledger: one unit, real numbers, each month once, in order.summary.pyworks out the numbers: each year, each decade, the 1961 to 1990 normals, the warming trend, and a permutation test of the last thirty years against the first thirty.charts.pydraws three honest charts: the temperature as a difference from the 1961 to 1990 average, the rain by decade, and both thirty-year periods month by month.report.pyprints the report and draws the charts, ending with your own conclusion.page.pyturns the report into a web page,story.html, with the charts inside it, andreport.pywrites it from the same lines it prints.
Then Yahya reads it against his checklist. Last of all, tell a data story of your own: a question, a public dataset of your choice that can answer it, the same pieces, and a page published online.
The Clocktower Weather Report, 1925 to 2024 Source: Clocktower weather station book, 1925 to 2024, in the Archive The record 1200 months, missing months: none Warmest year: 2022 (12.99 degrees C). Coldest: 1963 (9.84 degrees C) Wettest year: 1960 (1439 mm). Driest: 1982 (798 mm) Then and now: 1995 to 2024 against 1925 to 1954 Temperature: +0.86 degrees C (p < 0.001) Rain: -35 mm a year (p = 0.21) Sunshine: +26 hours a year (p = 0.43) Warming over the century: 0.13 degrees C a decade Warmed most on the 1961 to 1990 normal: June, +1.50 degrees C Conclusion ...
What's in it
- Mark it out first
- Keep it, or take it from elsewhere
- No negative rain
- The station book, cleaned
- A straight line through the years
- Slope first
- The numbers
- The charts
- Yahya reads Caitlin's draft
- The report
- Pictures inside a page
- There and back
- The story as a web page
- Milestone: Yahya's checklist
- A story of your own
- Milestone: your own data story
- Ship it