twoHelixestwoHelixes Start free

Datasets / Energy transition

Renewable share of electricity by region

Every region's share climbs, but from different bases: the lines do not cross so much as converge on different ceilings.

Question line chart of renewable share by year and region
Renewable Share Pct by Year010203040502016201720182019202020212022202320242025YearNorth AmericaEuropeAsia PacificLatin America
Energy transition — 40 rows charted from 40, drawn as a bar
How it decided
Finding the data108 ms

Energy transition: 40 rows, 9 columns. year, region and renewable_share_pct.

Shaping the data12 ms

40 rows in, 40 out across 3 columns. Every region's share climbs, but from different bases: the lines do not cross so much as converge on different ceilings.

Choosing the chart17 ms

bar. One measure over time per region: a line each. An area would sum shares that do not add to a meaningful total.

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.

result = df.groupby(["year", "region"], as_index=False)["renewable_share_pct"].mean()

What it charted

40 rows out of 40, 3 columns. First 8 shown.

yearregionrenewable_share_pct
2016Asia Pacific44.9
2016Europe47.2
2016Latin America42.3
2016North America48.6
2017Asia Pacific44.0
2017Europe46.9
2017Latin America41.9
2017North America49.5