DataBrighten

    Pupil-teacher ratio, lower secondary

    1,955 × 6rows × columns: 180 countries, 1981 to 2019

    Real data: World Bank, World Development Indicators, indicator SE.SEC.ENRL.LO.TC.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows1,955country-year values
    Countries180with at least one value
    Years1981 – 201939 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Lower secondary school pupil-teacher ratio is the average number of pupils per teacher in lower secondary school.

    Limits and exceptions (World Bank note)

    The comparability of pupil-teacher ratios across countries is affected by the definition of teachers and by differences in class size by grade and in the number of hours taught, as well as the different practices countries employ such as part-time teachers, school shifts, and multi-grade classes. Moreover, the underlying enrollment levels are subject to a variety of reporting errors.

    The numbers in 2018

    In 2018, 63 countries have a value. The highest is Eritrea (40.34); the lowest is San Marino (6.28). The median country value is 14.55. The World Bank's World aggregate for 2018 is 16.87.

    Top 10 countries, 2018

    value

    Source: World Bank, SE.SEC.ENRL.LO.TC.ZS, retrieved 19 November 2026. Computed from pupil-teacher-ratio-lower-secondary.csv.

    Highest, 2018

    #CountryValue
    1Eritrea40.34
    2Mauritania37.6
    3Burundi35.69
    4Afghanistan33.87
    5Rwanda30.32
    6Mali29.73
    7Djibouti28.81
    8Myanmar28.73
    9Senegal28.35
    10El Salvador27.8

    Lowest, 2018

    #CountryValue
    1San Marino6.28
    2Azerbaijan6.99
    3Serbia7.8
    4Tuvalu7.87
    5Georgia8.28
    6Monaco8.4
    7Belarus8.42
    8Bosnia and Herzegovina8.49
    9Uzbekistan8.5
    10Comoros9.16
    How many countries report, by decade
    DecadeMost countries in one year
    1980s2
    1990s92
    2000s91
    2010s103

    World aggregate by year

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

    YearWorld
    201816.87
    201716.78
    201616.9
    201517.26
    201417.37
    201317.48
    201217.86
    201117.79
    201017.62
    200917.55
    200817.84
    200718.18

    By region, 2018

    World Bank regionValue
    South Asia25.83
    Latin America & Caribbean 18.25
    Middle East, North Africa, Afghanistan & Pakistan16.56
    North America15.2
    East Asia & Pacific14.36
    Europe & Central Asia10.49

    First rows

    pupil-teacher-ratio-lower-secondary.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200731.88292
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200831.37915
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200941.37085
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201043.62042
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201142.79376
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201243.8545
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201531.87929
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201632.54577

    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
    valuenumberPupil-teacher ratio, lower secondary, 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 2018?

    Eritrea, with 40.34.

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

    =FILTER(A2:A100000,(E2:E100000=2018)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2018)))

    SQL (table wb = the CSV)

    SELECT country, value FROM wb WHERE year = 2018
      AND value = (SELECT MAX(value) FROM wb WHERE year = 2018);

    pandas (df = pd.read_csv("pupil-teacher-ratio-lower-secondary.csv"))

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

    File: pupil-teacher-ratio-lower-secondary.csv

    How many countries report a value for 2018?

    63 of the 217 economies in the file's country list.

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

    =COUNTIF(E2:E100000,2018)

    SQL (table wb = the CSV)

    SELECT COUNT(*) FROM wb WHERE year = 2018;

    pandas (df = pd.read_csv("pupil-teacher-ratio-lower-secondary.csv"))

    (df.year == 2018).sum()

    File: pupil-teacher-ratio-lower-secondary.csv

    What is the median across countries in 2018?

    14.55 (median of the 63 country values; not a World Bank aggregate).

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

    =MEDIAN(FILTER(F2:F100000,E2:E100000=2018))

    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 = 2018 ORDER BY value
      LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2018) % 2
      OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2018));

    pandas (df = pd.read_csv("pupil-teacher-ratio-lower-secondary.csv"))

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

    File: pupil-teacher-ratio-lower-secondary.csv

    Which country rose the most between 2008 and 2018?

    Thailand: from 20.38 to 24.86, a rise of 4.48 (out of 33 countries with both years).

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

    Use the wide file (pupil-teacher-ratio-lower-secondary-wide.csv): add a column = [2018] - [2008], 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 = 2008 AND b.year = 2018 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("pupil-teacher-ratio-lower-secondary.csv"))

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

    File: pupil-teacher-ratio-lower-secondary.csv

    Which year has the most countries reporting?

    2017, with 103 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("pupil-teacher-ratio-lower-secondary.csv"))

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

    File: pupil-teacher-ratio-lower-secondary.csv