DataBrighten

    Secondary education, pupils

    7,567 × 6rows × columns: 210 countries, 1970 to 2025

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

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

    What it measures

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

    The numbers in 2024

    In 2024, 111 countries have a value. The highest is India (131.51 million); the lowest is Tuvalu (1,145). The median country value is 562,417. The World Bank's World aggregate for 2024 is 651.68 million.

    Top 10 countries, 2024

    value

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

    Highest, 2024

    #CountryValue
    1India131.51 million
    2China97.98 million
    3Indonesia28.00 million
    4Brazil21.50 million
    5Pakistan19.70 million
    6Bangladesh15.07 million
    7Mexico13.99 million
    8Philippines11.87 million
    9Egypt, Arab Rep.11.56 million
    10Germany6.97 million

    Lowest, 2024

    #CountryValue
    1Tuvalu1,145
    2Palau1,389
    3Naoero1,542
    4San Marino1,676
    5British Virgin Islands2,300
    6Gibraltar2,582
    7Turks and Caicos Islands3,004
    8Monaco3,469
    9Cayman Islands4,049
    10Marshall Islands5,009
    How many countries report, by decade
    DecadeMost countries in one year
    1970s150
    1980s146
    1990s150
    2000s155
    2010s159
    2020s155

    World aggregate by year

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

    YearWorld
    2024651.68 million
    2023647.94 million
    2022642.04 million
    2021632.30 million
    2020618.53 million
    2019606.48 million
    2018599.72 million
    2017590.13 million
    2016587.72 million
    2015583.34 million
    2014580.92 million
    2013573.58 million

    By region, 2024

    World Bank regionValue
    East Asia & Pacific174.05 million
    South Asia152.88 million
    Europe & Central Asia83.79 million
    Sub-Saharan Africa 81.43 million
    Middle East, North Africa, Afghanistan & Pakistan68.09 million
    Latin America & Caribbean 63.30 million
    North America28.14 million

    First rows

    secondary-education-pupils.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1970116174
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1971134069
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1972153060
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1973165346
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1974172797
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1975185723
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1976204889
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1977223379

    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
    valuenumberSecondary 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 131.51 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("secondary-education-pupils.csv"))

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

    File: secondary-education-pupils.csv

    How many countries report a value for 2024?

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

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

    File: secondary-education-pupils.csv

    What is the median across countries in 2024?

    562,417 (median of the 111 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("secondary-education-pupils.csv"))

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

    File: secondary-education-pupils.csv

    Which country rose the most between 2014 and 2024?

    China: from 88.21 million to 97.98 million, a rise of 9.77 million (out of 88 countries with both years).

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

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

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

    File: secondary-education-pupils.csv

    Which year has the most countries reporting?

    2011, with 159 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("secondary-education-pupils.csv"))

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

    File: secondary-education-pupils.csv