DataBrighten

    School enrollment, secondary, male (% net)

    2,638 × 6rows × columns: 187 countries, 1970 to 2019

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

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

    What it measures

    Net enrollment rate is the ratio of children of official school age who are enrolled in school to the population of the corresponding official school age. Secondary education completes the provision of basic education that began at the primary level, and aims at laying the foundations for lifelong learning and human development, by offering more subject- or skill-oriented instruction using more specialized teachers.

    Limits and exceptions (World Bank note)

    Enrollment indicators are based on annual school surveys, but do not necessarily reflect actual attendance or dropout rates during the year. Also, the length of education differs across countries and can influence enrollment rates, although the International Standard Classification of Education (ISCED) tries to minimize the difference. For example, a shorter duration for primary education tends to increase the rate; a longer one to decrease it (in part because older children are more at risk of dropping out). Moreover, age at enrollment may be inaccurately estimated or misstated, especially in communities where registration of births is not strictly enforced.

    The numbers in 2017

    In 2017, 113 countries have a value. The highest is Singapore (99.77); the lowest is Central African Republic (15.72). The median country value is 84.19. The World Bank's World aggregate for 2018 is 66.28.

    Top 10 countries, 2017

    % net

    Source: World Bank, SE.SEC.NENR.MA, retrieved 19 November 2026. Computed from school-enrollment-secondary-male-percent-net.csv.

    Highest, 2017

    #CountryValue
    1Singapore99.77
    2Canada99.63
    3Lithuania98.49
    4Korea, Rep.98.19
    5Liechtenstein97.47
    6United Kingdom97.03
    7Spain96.05
    8New Zealand96.04
    9Gibraltar96.03
    10Belarus95.85

    Lowest, 2017

    #CountryValue
    1Central African Republic15.72
    2Niger22.97
    3Tanzania24.11
    4Burundi25.23
    5Mauritania27.87
    6Madagascar27.96
    7Burkina Faso28.96
    8Mali32.47
    9Senegal35.94
    10Sierra Leone38.53
    How many countries report, by decade
    DecadeMost countries in one year
    1970s28
    1980s27
    1990s91
    2000s99
    2010s120

    World aggregate by year

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

    YearWorld
    201866.28
    201766.13
    201665.81
    201565.67
    201465.63
    201364.96
    201263.76
    201163.78
    201062.97
    200961.87
    200861.61
    200760.97

    By region, 2017

    World Bank regionValue
    North America92.55
    Europe & Central Asia90.24
    East Asia & Pacific76.93
    Latin America & Caribbean 75.85
    Middle East, North Africa, Afghanistan & Pakistan74.51
    South Asia60.17
    Sub-Saharan Africa 36.91

    First rows

    school-enrollment-secondary-male-percent-net.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197414.23008
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income199320.64213
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200737.98502
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201358.91203
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201458.33682
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201557.33934
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201658.86204
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201761.08087

    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
    valuenumberSchool enrollment, secondary, male (% net), 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?

    Singapore, with 99.77.

    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("school-enrollment-secondary-male-percent-net.csv"))

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

    File: school-enrollment-secondary-male-percent-net.csv

    How many countries report a value for 2017?

    113 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("school-enrollment-secondary-male-percent-net.csv"))

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

    File: school-enrollment-secondary-male-percent-net.csv

    What is the median across countries in 2017?

    84.19 (median of the 113 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("school-enrollment-secondary-male-percent-net.csv"))

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

    File: school-enrollment-secondary-male-percent-net.csv

    Which country rose the most between 2007 and 2017?

    Ecuador: from 55.43 to 84.19, a rise of 28.76 (out of 61 countries with both years).

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

    Use the wide file (school-enrollment-secondary-male-percent-net-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("school-enrollment-secondary-male-percent-net.csv"))

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

    File: school-enrollment-secondary-male-percent-net.csv

    Which year has the most countries reporting?

    2015, with 120 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("school-enrollment-secondary-male-percent-net.csv"))

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

    File: school-enrollment-secondary-male-percent-net.csv