Skip to main content

Tutorial series

Analyse African electricity data end to end

Take a public energy dataset from download to a reproducible report: inspect, clean, join regions, summarise, measure growth, chart, check its limits and publish, with pandas and Python 3.15.

  1. Add African subregions to the energy data with a checked join

    You will build a UN M49 subregion lookup for Africa keyed by ISO code, join it to the cleaned energy data with pandas checks that fail loudly, explain every code that did not match, and save a table with a subregion on every row.

    Intermediate · 15 min

  2. Chart the energy data with small multiples

    You will draw three charts of African electricity from your series tables, a panel per subregion on one shared scale, a slope chart of 2000 against 2024 and stacked areas of generation by source, each labelled directly, credited to OWID and Ember, saved as SVG and PNG with written alt text.

    Intermediate · 22 min