DataBrighten

    Children out of school, primary

    4,644 × 6rows × columns: 205 countries, 1970 to 2025

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

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

    What it measures

    Children out of school are the number of primary-school-age children not enrolled in primary or secondary school.

    Limits and exceptions (World Bank note)

    Due to different data sources for enrollment and population data, the number may not capture the actual number of children not attending in primary school.

    The numbers in 2024

    In 2024, 120 countries have a value. The highest is Pakistan (5.43 million); the lowest is Turks and Caicos Islands (3.92). The median country value is 15,176.

    Top 10 countries, 2024

    value

    Source: World Bank, SE.PRM.UNER, retrieved 19 November 2026. Computed from children-out-of-school-primary.csv.

    Highest, 2024

    #CountryValue
    1Pakistan5.43 million
    2Ethiopia4.24 million
    3Tanzania2.01 million
    4Niger1.88 million
    5Philippines1.62 million
    6Burkina Faso1.36 million
    7South Sudan1.20 million
    8Bangladesh918,575
    9Chad855,041
    10Senegal675,615

    Lowest, 2024

    #CountryValue
    1Turks and Caicos Islands3.92
    2Tuvalu7.07
    3Palau18.08
    4United Arab Emirates21.01
    5Gibraltar42.77
    6Naoero55.32
    7Marshall Islands77.84
    8San Marino91
    9Andorra102
    10Luxembourg111
    How many countries report, by decade
    DecadeMost countries in one year
    1970s48
    1980s57
    1990s84
    2000s128
    2010s148
    2020s148

    First rows

    children-out-of-school-primary.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19741396253
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19931593009
    AlbaniaALBEurope & Central AsiaUpper middle income19998349
    AlbaniaALBEurope & Central AsiaUpper middle income20008207
    AlbaniaALBEurope & Central AsiaUpper middle income20017819
    AlbaniaALBEurope & Central AsiaUpper middle income20033146
    AlbaniaALBEurope & Central AsiaUpper middle income20048228
    AlbaniaALBEurope & Central AsiaUpper middle income200813381

    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
    valuenumberChildren out of school, primary, 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?

    Pakistan, with 5.43 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("children-out-of-school-primary.csv"))

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

    File: children-out-of-school-primary.csv

    How many countries report a value for 2024?

    120 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("children-out-of-school-primary.csv"))

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

    File: children-out-of-school-primary.csv

    What is the median across countries in 2024?

    15,176 (median of the 120 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("children-out-of-school-primary.csv"))

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

    File: children-out-of-school-primary.csv

    Which country rose the most between 2014 and 2024?

    Ethiopia: from 3.23 million to 4.24 million, a rise of 1.00 million (out of 97 countries with both years).

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

    Use the wide file (children-out-of-school-primary-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("children-out-of-school-primary.csv"))

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

    File: children-out-of-school-primary.csv

    Which year has the most countries reporting?

    2023, with 148 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("children-out-of-school-primary.csv"))

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

    File: children-out-of-school-primary.csv