DataBrighten

    School enrollment, primary, male (% net)

    3,205 × 6rows × columns: 192 countries, 1970 to 2019

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

    textnumberdateyes/no
    Rows3,205country-year values
    Countries192with 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. Primary education provides children with basic reading, writing, and mathematics skills along with an elementary understanding of such subjects as history, geography, natural science, social science, art, and music.

    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, 82 countries have a value. The highest is United Kingdom (99.63); the lowest is Liberia (44.12). The median country value is 92.99. The World Bank's World aggregate for 2018 is 90.53.

    Top 10 countries, 2017

    % net

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

    Highest, 2017

    #CountryValue
    1United Kingdom99.63
    2Belgium98.66
    3Finland98.51
    4Netherlands98.23
    5Greece98
    6Portugal97.92
    7Korea, Rep.97.35
    8Cyprus97.11
    9Cameroon96.96
    10Spain96.93

    Lowest, 2017

    #CountryValue
    1Liberia44.12
    2Eritrea54.09
    3Djibouti58.28
    4Sudan61.07
    5Mali64.72
    6Pakistan69.6
    7Niger69.89
    8Senegal71.27
    9Gambia, The72.42
    10Mauritania75.78
    How many countries report, by decade
    DecadeMost countries in one year
    1970s55
    1980s63
    1990s86
    2000s95
    2010s97

    World aggregate by year

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

    YearWorld
    201890.53
    201790.28
    201690.43
    201590.1
    201490.06
    201389.74
    201289.76
    201189.2
    201089.33
    200989.35
    200889.63
    200789.64

    By region, 2017

    World Bank regionValue
    North America95.14
    Middle East, North Africa, Afghanistan & Pakistan95.03
    Europe & Central Asia95.01
    Latin America & Caribbean 93.45
    South Asia88.19

    First rows

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

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197444.56145
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income199338.79503
    AlbaniaALBEurope & Central AsiaUpper middle income199997.55622
    AlbaniaALBEurope & Central AsiaUpper middle income200095.39781
    AlbaniaALBEurope & Central AsiaUpper middle income200193.3156
    AlbaniaALBEurope & Central AsiaUpper middle income200391.20947
    AlbaniaALBEurope & Central AsiaUpper middle income200489.95864
    AlbaniaALBEurope & Central AsiaUpper middle income200886.27404

    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, primary, 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?

    United Kingdom, with 99.63.

    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-primary-male-percent-net.csv"))

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

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

    How many countries report a value for 2017?

    82 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-primary-male-percent-net.csv"))

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

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

    What is the median across countries in 2017?

    92.99 (median of the 82 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-primary-male-percent-net.csv"))

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

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

    Which country rose the most between 2007 and 2017?

    Niger: from 49.59 to 69.89, a rise of 20.31 (out of 51 countries with both years).

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

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

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

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

    Which year has the most countries reporting?

    2012, with 97 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-primary-male-percent-net.csv"))

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

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