DataBrighten

    Secondary education, general pupils

    7,248 × 6rows × columns: 211 countries, 1970 to 2019

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

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

    What it measures

    Secondary general pupils are the number of secondary students enrolled in general education programs, including teacher training.

    The numbers in 2017

    In 2017, 155 countries have a value. The highest is India (127.53 million); the lowest is Liechtenstein (2,120). The median country value is 563,864. The World Bank's World aggregate for 2018 is 532.00 million.

    Top 10 countries, 2017

    value

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

    Highest, 2017

    #CountryValue
    1India127.53 million
    2China67.42 million
    3United States24.79 million
    4Brazil22.16 million
    5Indonesia19.64 million
    6Bangladesh14.70 million
    7Pakistan12.17 million
    8Mexico10.28 million
    9Turkiye8.69 million
    10Russian Federation8.47 million

    Lowest, 2017

    #CountryValue
    1Liechtenstein2,120
    2British Virgin Islands2,176
    3Gibraltar2,212
    4Monaco3,092
    5Andorra4,053
    6Seychelles7,124
    7Antigua and Barbuda7,577
    8Grenada8,834
    9Kiribati9,548
    10St. Vincent and the Grenadines10,113
    How many countries report, by decade
    DecadeMost countries in one year
    1970s159
    1980s162
    1990s153
    2000s165
    2010s165

    World aggregate by year

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

    YearWorld
    2018532.00 million
    2017526.00 million
    2016525.00 million
    2015521.00 million
    2014517.00 million
    2013509.00 million
    2012502.00 million
    2011495.00 million
    2010487.00 million
    2009478.00 million
    2008476.00 million
    2007470.00 million

    By region, 2017

    World Bank regionValue
    South Asia163.00 million
    East Asia & Pacific129.00 million
    Europe & Central Asia60.40 million
    Sub-Saharan Africa 57.80 million
    Latin America & Caribbean 56.20 million
    Middle East, North Africa, Afghanistan & Pakistan32.20 million
    North America27.30 million

    First rows

    secondary-education-general-pupils.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1970107609
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1971127162
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1972146988
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1973159464
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1974167397
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1975179763
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1976196991
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1977211187

    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, general 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 2017?

    India, with 127.53 million.

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

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

    SQL (table wb = the CSV)

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

    pandas (df = pd.read_csv("secondary-education-general-pupils.csv"))

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

    File: secondary-education-general-pupils.csv

    How many countries report a value for 2017?

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

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

    =COUNTIF(E2:E100000,2017)

    SQL (table wb = the CSV)

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

    pandas (df = pd.read_csv("secondary-education-general-pupils.csv"))

    (df.year == 2017).sum()

    File: secondary-education-general-pupils.csv

    What is the median across countries in 2017?

    563,864 (median of the 155 country values; not a World Bank aggregate).

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

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

    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 = 2017 ORDER BY value
      LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2017) % 2
      OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2017));

    pandas (df = pd.read_csv("secondary-education-general-pupils.csv"))

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

    File: secondary-education-general-pupils.csv

    Which country rose the most between 2007 and 2017?

    India: from 95.31 million to 127.53 million, a rise of 32.22 million (out of 137 countries with both years).

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

    Use the wide file (secondary-education-general-pupils-wide.csv): add a column = [2017] - [2007], 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 = 2007 AND b.year = 2017 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("secondary-education-general-pupils.csv"))

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

    File: secondary-education-general-pupils.csv

    Which year has the most countries reporting?

    2016, with 165 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-general-pupils.csv"))

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

    File: secondary-education-general-pupils.csv