DataBrighten

    Access to electricity, urban (% of urban population)

    6,697 × 6rows × columns: 214 countries, 1990 to 2024

    Real data: World Bank, World Development Indicators, indicator EG.ELC.ACCS.UR.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows6,697country-year values
    Countries214with at least one value
    Years1990 – 202435 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Access to electricity, urban is the percentage of urban population with access to electricity.

    The numbers in 2024

    In 2024, 213 countries have a value. At the top, 135 countries tie at 100 (e.g. Albania, Algeria, Andorra); the lowest is South Sudan (22.8). The median country value is 100. The World Bank's World aggregate for 2024 is 97.76.

    Highest, 2024

    Ties are listed A to Z.

    #CountryValue
    1Albania100
    2Algeria100
    3Andorra100
    4Antigua and Barbuda100
    5Argentina100
    6Armenia100
    7Aruba100
    8Australia100
    9Austria100
    10Azerbaijan100

    Lowest, 2024

    #CountryValue
    1South Sudan22.8
    2Central African Republic38.8
    3Chad51
    4Congo, Dem. Rep.55
    5Liberia55.5
    6Sierra Leone56.4
    7Malawi59.5
    8Guinea-Bissau65.6
    9Papua New Guinea66.8
    10Niger69.1
    How many countries report, by decade
    DecadeMost countries in one year
    1990s170
    2000s212
    2010s212
    2020s213

    World aggregate by year

    As published by the World Bank (in the regions file, not the country file).

    YearWorld
    202497.76
    202397.78
    202297.65
    202197.64
    202097.26
    201997.29
    201897.04
    201797.15
    201696.91
    201596.44
    201496.57
    201396.5

    By region, 2024

    World Bank regionValue
    North America100
    Europe & Central Asia100
    South Asia99.94
    East Asia & Pacific99.9
    Latin America & Caribbean 99.66
    Middle East, North Africa, Afghanistan & Pakistan99.37
    Sub-Saharan Africa 82.87

    First rows

    access-to-electricity-urban-percent-of-urban-population.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200073.4
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200174.8
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200276.1
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200377.5
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200478.8
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200574
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200681.6
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200783

    Data dictionary

    ColumnTypeMeaning
    countrytextCountry or economy, World Bank name
    iso3textISO 3166-1 alpha-3 code
    regiontextWorld Bank region
    income_grouptextWorld Bank income group
    yearnumberCalendar year of the value
    valuenumberAccess to electricity, urban (% of urban population), exactly as the World Bank API returns it (not rounded)

    Only country-years with a value are in the long file; blank cells in the wide file mean no value was published.

    Practice questions

    answers computed from the file

    Which country has the highest value in 2024?

    There is a tie: 135 countries share the highest value, 100 (for example Albania, Algeria, Andorra).

    Excel (on the long CSV: E = year, F = value)

    =FILTER(A2:A100000,(E2:E100000=2024)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2024)))

    SQL (table wb = the CSV)

    SELECT country, value FROM wb WHERE year = 2024
      AND value = (SELECT MAX(value) FROM wb WHERE year = 2024);

    pandas (df = pd.read_csv("access-to-electricity-urban-percent-of-urban-population.csv"))

    y = df[df.year == 2024]
    y[y.value == y.value.max()][["country", "value"]]

    File: access-to-electricity-urban-percent-of-urban-population.csv

    How many countries report a value for 2024?

    213 of the 217 economies in the file's country list.

    Excel (on the long CSV: E = year, F = value)

    =COUNTIF(E2:E100000,2024)

    SQL (table wb = the CSV)

    SELECT COUNT(*) FROM wb WHERE year = 2024;

    pandas (df = pd.read_csv("access-to-electricity-urban-percent-of-urban-population.csv"))

    (df.year == 2024).sum()

    File: access-to-electricity-urban-percent-of-urban-population.csv

    What is the median across countries in 2024?

    100 (median of the 213 country values; not a World Bank aggregate).

    Excel (on the long CSV: E = year, F = value)

    =MEDIAN(FILTER(F2:F100000,E2:E100000=2024))

    SQL (table wb = the CSV)

    -- SQLite has no MEDIAN(); this picks the middle value(s)
    SELECT AVG(value) FROM (SELECT value FROM wb WHERE year = 2024 ORDER BY value
      LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2024) % 2
      OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2024));

    pandas (df = pd.read_csv("access-to-electricity-urban-percent-of-urban-population.csv"))

    df[df.year == 2024]["value"].median()

    File: access-to-electricity-urban-percent-of-urban-population.csv

    Which country rose the most between 2014 and 2024?

    Liberia: from 14.8 to 55.5, a rise of 40.7 (out of 212 countries with both years).

    Excel (on the long CSV: E = year, F = value)

    Use the wide file (access-to-electricity-urban-percent-of-urban-population-wide.csv): add a column = [2024] - [2014], then sort it largest to smallest.

    SQL (table wb = the CSV)

    SELECT a.country, b.value - a.value AS rise FROM wb a JOIN wb b ON a.iso3 = b.iso3
    WHERE a.year = 2014 AND b.year = 2024 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("access-to-electricity-urban-percent-of-urban-population.csv"))

    w = df.pivot(index="country", columns="year", values="value")
    (w[2024] - w[2014]).dropna().nlargest(1)

    File: access-to-electricity-urban-percent-of-urban-population.csv

    Which year has the most countries reporting?

    2024, with 213 countries.

    Excel (on the long CSV: E = year, F = value)

    Make a pivot table: year in Rows, Count of value in Values, then sort by the count.

    SQL (table wb = the CSV)

    SELECT year, COUNT(*) AS n FROM wb GROUP BY year ORDER BY n DESC, year DESC LIMIT 1;

    pandas (df = pd.read_csv("access-to-electricity-urban-percent-of-urban-population.csv"))

    df.groupby("year").size().sort_values(ascending=False).head(1)

    File: access-to-electricity-urban-percent-of-urban-population.csv