twoHelixestwoHelixes Start free

Datasets / World climate and energy

Highest CO2 per person, latest year per country

Each country contributes its own latest observed year, so the ranking compares most countries on recent data without filling missing years with zero.

Question which countries emit the most CO2 per person in the latest year?
CO2 per person by country010203040QatarBruneiTrinidad and Toba…United Arab Emira…Sint Maarten (Dut…AustraliaKazakhstanFaroe IslandsCO2 tonnes per person
World climate and energy — 15 rows charted from 8,037, drawn as a hbar
How it decided
Finding the data11 ms

World climate and energy: 8,037 rows, 6 columns. country and co2_tonnes_per_person; the year is each country's latest observed year.

Shaping the data15 ms

8,037 rows in, 15 out across 2 columns. Each country contributes its own latest observed year, so the ranking compares most countries on recent data without filling missing years with zero.

Choosing the chart6 ms

hbar. Country names are long labels and emissions are one measure, so sorted horizontal bars read best.

Applying defaults1 ms

Palette, spacing, axis titles and legend placement applied. 0 issues found.

The transformation

This is the code, not a description of it — the chart above was drawn from what it returns, and the notebook download runs the same lines against the same file.

df = df.dropna(subset=["co2_tonnes_per_person"])
latest = df.groupby("country")["year"].transform("max")
result = df[df["year"] == latest][["country", "co2_tonnes_per_person"]]
result = result.sort_values("co2_tonnes_per_person", ascending=False)
result = result.head(15).reset_index(drop=True)

What it charted

15 rows out of 8,037, 2 columns. First 8 shown.

countryco2_tonnes_per_person
Qatar41.2712
Kuwait26.2475
Brunei26.0462
Bahrain24.2701
Trinidad and Tobago22.9319
Saudi Arabia20.3792
United Arab Emirates20.1311
New Caledonia18.0644