Who gets left behind?
One country, in context
One country beside its region and the world.
Lesson 3 of 6 · Analyse it in Python
Try it yourself
- Python, after
import undata as untable = un.profile("Chad", [ "3.1.1", # maternal mortality "undata/sdg/SH_DYN_MORT.AGE--Y0T4", # under-5 mortality "undata/sdg/SE_TOT_CPLR.EDUCATION_LEVEL--ISCED11_1", # primary completion "undata/sdg/EG_ACS_ELEC", # electricity "undata/sdg/SG_GEN_PARL.SEX--F", # women in parliament ]) un.chart(table, "chad-profile.png") print(un.describe(table)) - Open the country profile use case in Colab
Remember: Where no regional figure is published, the cell stays empty. Never an invented average.
Transcript
- Seven hundred and forty-eight. Is that high? A number on its own says very little. Here is how to put a country in context, in one call.
- un.profile takes a country and the indicators you care about. SDG numbers or full IDs, with a comment so the next person knows what each one is. It finds the country’s region in the UN’s M49 standard, Middle Africa for Chad, sets each value beside the region and the world, and ranks it within the region.
- Maternal mortality: 748, against 197 for the world, and the highest of nine countries in Middle Africa. Child deaths under five: also the highest. Fewer than three in ten children finish primary school. Thirteen percent of people have electricity, the lowest in the region. But women hold a third of the seats in parliament, ahead of the region and the world.
- Two rows have no Middle Africa marker. The agency publishes no regional figure there, so undata leaves it empty, rather than inventing an average from whichever countries happen to report.
- un.chart draws the same thing for your document: one row per indicator, each on its own scale, so a rate in the hundreds and a percentage can share a page, with the source line underneath.
- And un.describe writes it out: each value, its year, its rank, and the world figure. Notice the years. The school figure is from 2019, the parliament figure from 2026. The table never hides that.
- Swap Chad for any country. Swap the list for the indicators in your mandate. The same call makes the briefing page.
- Context in one call, with every year and source on the table. Next: who gets left behind.