Green on Paper โ The Verdant Union: Six Green Claims
The Verdant Union has published a Green Progress Report with six claims: carbon dioxide down since 2016, tens of thousands of megawatts of new renewable capacity, a recycling rate of 45.1, industry using less water, cleaner air in its largest city, and green projects that cut millions of tonnes a year. Every number in it is arithmetically true. Your job is to find out what each one means.
Work through the seventeen tasks with the book Green on Paper beside you: each task follows one chapter, and each chapter ends with a Try It box that describes the same task. Learn Python from zero, read the twelve tables with pandas, ask them the questions each claim raises (which years, capacity or output, whose average, which sector, better than what, claimed by whom), find what is wrong with the data, clean it in code with a log of every decision, and build the scorecard. Then chart the answers and write each claim the way it should have been written.
The project is one notebook for the whole book. Add each chapter's Python blocks below the previous chapter's, in order, and assign them to that chapter's task. The tables are loaded under their file names: pd.read_csv("data/carbon_emissions.csv") works as in the book, and lp.table("carbon_emissions") is a shortcut. Later tasks use names made by earlier ones (the twelve tables from Task 3, air["Month"] from Task 8, the clean tables and cleaning_log from Task 11, scorecard from Task 12), so keep the blocks that make a name above the blocks that use it. Each task asks you to make a variable of your own, and its automatic check reads it. Python names live in the browser session: after reopening the project, press Run all before running anything else, so that every earlier block rebuilds what later blocks use.
You need no Python to start: the book teaches it from the first line. Your notebook is the deliverable: assign every block to its task, write the notes each task asks for, run the automatic checks, press Run all until it passes from top to bottom, and submit.
Real SQL (DuckDB) and real Python (pandas) run entirely in your browser โ nothing to install, and your data never leaves it. โถโถ Run all replays the whole notebook top-to-bottom; a clean pass marks the published repo as reproducible โ.