DataBrighten

    Children out of school, primary, male

    3,613 × 6rows × columns: 203 countries, 1970 to 2025

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

    textnumberdateyes/no
    Rows3,613country-year values
    Countries203with 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, 84 countries have a value. The highest is Pakistan (2.63 million); the lowest is Andorra (41). The median country value is 11,268.

    Top 10 countries, 2024

    value

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

    Highest, 2024

    #CountryValue
    1Pakistan2.63 million
    2Ethiopia1.91 million
    3Tanzania1.19 million
    4Niger924,422
    5Philippines744,103
    6Burkina Faso703,431
    7South Sudan634,882
    8Senegal473,825
    9Chad335,149
    10Cote d'Ivoire313,204

    Lowest, 2024

    #CountryValue
    1Andorra41
    2San Marino56
    3Azerbaijan71
    4Samoa117
    5Cayman Islands142
    6Seychelles376
    7Switzerland435
    8British Virgin Islands525
    9St. Lucia567
    10Kiribati637
    How many countries report, by decade
    DecadeMost countries in one year
    1970s42
    1980s51
    1990s70
    2000s97
    2010s114
    2020s108

    First rows

    children-out-of-school-primary-male.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1974528840
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1993635040
    AlbaniaALBEurope & Central AsiaUpper middle income2003130
    AlbaniaALBEurope & Central AsiaUpper middle income20043715
    AlbaniaALBEurope & Central AsiaUpper middle income20087271
    AlbaniaALBEurope & Central AsiaUpper middle income20096742
    AlbaniaALBEurope & Central AsiaUpper middle income20107639
    AlbaniaALBEurope & Central AsiaUpper middle income20115162

    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, male, 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 2.63 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-male.csv"))

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

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

    How many countries report a value for 2024?

    84 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-male.csv"))

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

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

    What is the median across countries in 2024?

    11,268 (median of the 84 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-male.csv"))

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

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

    Which country rose the most between 2014 and 2024?

    Ethiopia: from 1.45 million to 1.91 million, a rise of 462,560 (out of 60 countries with both years).

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

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

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

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

    Which year has the most countries reporting?

    2012, with 114 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-male.csv"))

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

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