DataBrighten

    Primary education, pupils

    8,834 × 6rows × columns: 210 countries, 1970 to 2025

    Real data: World Bank, World Development Indicators, indicator SE.PRM.ENRL, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows8,834country-year values
    Countries210with at least one value
    Years1970 – 202556 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Primary education pupils is the total number of pupils enrolled at primary level in public and private schools.

    The numbers in 2024

    In 2024, 135 countries have a value. The highest is India (138.37 million); the lowest is Tuvalu (1,332). The median country value is 533,550. The World Bank's World aggregate for 2024 is 780.85 million.

    Top 10 countries, 2024

    value

    Source: World Bank, SE.PRM.ENRL, retrieved 19 November 2026. Computed from primary-education-pupils.csv.

    Highest, 2024

    #CountryValue
    1India138.37 million
    2China108.57 million
    3Indonesia28.99 million
    4Pakistan25.38 million
    5Bangladesh16.69 million
    6Ethiopia15.93 million
    7Egypt, Arab Rep.15.40 million
    8Brazil15.11 million
    9Mexico13.19 million
    10Philippines13.06 million

    Lowest, 2024

    #CountryValue
    1Tuvalu1,332
    2San Marino1,388
    3Palau1,449
    4British Virgin Islands1,626
    5Naoero1,839
    6Monaco2,068
    7Gibraltar2,755
    8Turks and Caicos Islands3,673
    9Andorra4,218
    10Cayman Islands4,334
    How many countries report, by decade
    DecadeMost countries in one year
    1970s162
    1980s169
    1990s173
    2000s177
    2010s174
    2020s173

    World aggregate by year

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

    YearWorld
    2024780.85 million
    2023769.85 million
    2022764.78 million
    2021754.48 million
    2020750.55 million
    2019741.60 million
    2018732.80 million
    2017743.46 million
    2016737.06 million
    2015719.56 million
    2014715.03 million
    2013716.26 million

    By region, 2024

    World Bank regionValue
    Sub-Saharan Africa 196.80 million
    East Asia & Pacific191.34 million
    South Asia160.82 million
    Middle East, North Africa, Afghanistan & Pakistan91.90 million
    Latin America & Caribbean 61.44 million
    Europe & Central Asia52.35 million
    North America26.20 million

    First rows

    primary-education-pupils.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1970540685
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1971572933
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1972597509
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1973624374
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1974654209
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1975692342
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1976729667
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1977764175

    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
    valuenumberPrimary education, pupils, 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?

    India, with 138.37 million.

    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("primary-education-pupils.csv"))

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

    File: primary-education-pupils.csv

    How many countries report a value for 2024?

    135 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("primary-education-pupils.csv"))

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

    File: primary-education-pupils.csv

    What is the median across countries in 2024?

    533,550 (median of the 135 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("primary-education-pupils.csv"))

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

    File: primary-education-pupils.csv

    Which country rose the most between 2014 and 2024?

    China: from 93.86 million to 108.57 million, a rise of 14.70 million (out of 120 countries with both years).

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

    Use the wide file (primary-education-pupils-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("primary-education-pupils.csv"))

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

    File: primary-education-pupils.csv

    Which year has the most countries reporting?

    2007, with 177 countries. (Later years are still filling in as countries report.)

    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("primary-education-pupils.csv"))

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

    File: primary-education-pupils.csv