DataBrighten

    School life expectancy, primary to tertiary, both sexes (years)

    4,491 × 6rows × columns: 202 countries, 1970 to 2025

    Real data: World Bank, Gender Statistics, indicator SE.SCH.LIFE, retrieved 19 November 2026. Values are as published; we only reshaped the file.

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

    What it measures

    Expected years of schooling is the number of years a child of school entrance age is expected to spend at school, or university, including years spent on repetition. It is the sum of the age-specific enrolment ratios for primary, secondary, post-secondary non-tertiary and tertiary education.

    The numbers in 2024

    In 2024, 76 countries have a value. The highest is Monaco (21.01); the lowest is Burkina Faso (7.48). The median country value is 14.54. The World Bank's World aggregate for 2024 is 12.71.

    Top 10 countries, 2024

    years

    Source: World Bank, SE.SCH.LIFE, retrieved 19 November 2026. Computed from school-life-expectancy-primary-to-tertiary-both-sexes-years.csv.

    Highest, 2024

    #CountryValue
    1Monaco21.01
    2Australia20.63
    3Finland19.63
    4New Zealand19.21
    5Hong Kong SAR, China18.72
    6Sweden18.58
    7Norway18.5
    8Denmark18.11
    9Spain17.74
    10Cyprus17.61

    Lowest, 2024

    #CountryValue
    1Burkina Faso7.48
    2Pakistan8.17
    3Honduras8.84
    4Cote d'Ivoire10.95
    5El Salvador10.98
    6Bangladesh11.12
    7Ghana11.72
    8Guyana11.78
    9Malaysia12.13
    10Belize12.28
    How many countries report, by decade
    DecadeMost countries in one year
    1970s71
    1980s76
    1990s70
    2000s120
    2010s124
    2020s105

    World aggregate by year

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

    YearWorld
    202412.71
    202312.66
    202212.61
    202112.49
    202012.39
    201912.25
    201812.18
    201712.2
    201612.2
    201512.09
    201412.05
    201311.96

    By region, 2024

    World Bank regionValue
    Europe & Central Asia16.31
    Latin America & Caribbean 15.09
    East Asia & Pacific14.77
    South Asia13.12
    Middle East, North Africa, Afghanistan & Pakistan11.17

    First rows

    school-life-expectancy-primary-to-tertiary-both-sexes-years.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19702.43940997123718
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19712.56149005889893
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19722.65059995651245
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19732.71661996841431
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19742.84674000740051
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19752.84484004974365
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19762.95464992523193
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19773.05378007888794

    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 life expectancy, primary to tertiary, both sexes (years), 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?

    Monaco, with 21.01.

    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("school-life-expectancy-primary-to-tertiary-both-sexes-years.csv"))

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

    File: school-life-expectancy-primary-to-tertiary-both-sexes-years.csv

    How many countries report a value for 2024?

    76 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("school-life-expectancy-primary-to-tertiary-both-sexes-years.csv"))

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

    File: school-life-expectancy-primary-to-tertiary-both-sexes-years.csv

    What is the median across countries in 2024?

    14.54 (median of the 76 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("school-life-expectancy-primary-to-tertiary-both-sexes-years.csv"))

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

    File: school-life-expectancy-primary-to-tertiary-both-sexes-years.csv

    Which country rose the most between 2014 and 2024?

    Andorra: from 11.35 to 14.9, a rise of 3.55 (out of 57 countries with both years).

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

    Use the wide file (school-life-expectancy-primary-to-tertiary-both-sexes-years-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("school-life-expectancy-primary-to-tertiary-both-sexes-years.csv"))

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

    File: school-life-expectancy-primary-to-tertiary-both-sexes-years.csv

    Which year has the most countries reporting?

    2015, with 124 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-life-expectancy-primary-to-tertiary-both-sexes-years.csv"))

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

    File: school-life-expectancy-primary-to-tertiary-both-sexes-years.csv