DataBrighten

    School enrollment, primary (% net)

    4,342 × 6rows × columns: 197 countries, 1970 to 2019

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

    textnumberdateyes/no
    Rows4,342country-year values
    Countries197with 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, 137 countries have a value. The highest is Norway (99.88); the lowest is Liberia (44.26). The median country value is 94.69. The World Bank's World aggregate for 2018 is 89.41.

    Top 10 countries, 2017

    % net

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

    Highest, 2017

    #CountryValue
    1Norway99.88
    2Canada99.88
    3Iceland99.83
    4Iran, Islamic Rep.99.7
    5Singapore99.67
    6Malaysia99.65
    7Malta99.54
    8United Kingdom99.49
    9Uruguay99.38
    10Argentina99.18

    Lowest, 2017

    #CountryValue
    1Liberia44.26
    2Eritrea51.75
    3Djibouti59.96
    4Sudan60.01
    5Mali61.28
    6Pakistan64.9
    7Niger65.12
    8Solomon Islands69.52
    9Senegal75.38
    10Gambia, The76.1
    How many countries report, by decade
    DecadeMost countries in one year
    1970s64
    1980s74
    1990s119
    2000s134
    2010s142

    World aggregate by year

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

    YearWorld
    201889.41
    201789.26
    201689.42
    201589.17
    201489.23
    201389
    201289.01
    201188.65
    201088.63
    200988.63
    200888.66
    200788.44

    By region, 2017

    World Bank regionValue
    North America95.08
    Europe & Central Asia94.98
    Latin America & Caribbean 93.65
    Middle East, North Africa, Afghanistan & Pakistan93.46
    South Asia87.61

    First rows

    school-enrollment-primary-percent-net.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197426.82221
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income199326.766
    AlbaniaALBEurope & Central AsiaUpper middle income199996.79354
    AlbaniaALBEurope & Central AsiaUpper middle income200095.38335
    AlbaniaALBEurope & Central AsiaUpper middle income200193.86551
    AlbaniaALBEurope & Central AsiaUpper middle income200391.69871
    AlbaniaALBEurope & Central AsiaUpper middle income200490.92345
    AlbaniaALBEurope & Central AsiaUpper middle income200886.78701

    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 (% 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?

    Norway, with 99.88.

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

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

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

    How many countries report a value for 2017?

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

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

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

    What is the median across countries in 2017?

    94.69 (median of the 137 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-percent-net.csv"))

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

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

    Which country rose the most between 2007 and 2017?

    Burkina Faso: from 54.03 to 76.42, a rise of 22.39 (out of 108 countries with both years).

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

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

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

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

    Which year has the most countries reporting?

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

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

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