DataBrighten

    Pupil-teacher ratio, upper secondary

    1,807 × 6rows × columns: 179 countries, 1981 to 2019

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

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

    What it measures

    Upper secondary school pupil-teacher ratio is the average number of pupils per teacher in upper 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, 57 countries have a value. The highest is India (33.14); the lowest is Armenia (4.46). The median country value is 14.49. The World Bank's World aggregate for 2018 is 17.16.

    Top 10 countries, 2018

    value

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

    Highest, 2018

    #CountryValue
    1India33.14
    2Afghanistan32.84
    3Pakistan28.99
    4Bangladesh28.67
    5Eritrea27.64
    6El Salvador27.21
    7Thailand27.14
    8Timor-Leste26.03
    9Rwanda25.18
    10Colombia24.95

    Lowest, 2018

    #CountryValue
    1Armenia4.46
    2San Marino5.34
    3Comoros6.88
    4Georgia6.92
    5Brunei Darussalam7.78
    6Bhutan7.86
    7Serbia8.12
    8Guatemala8.15
    9Jordan8.4
    10Belarus8.91
    How many countries report, by decade
    DecadeMost countries in one year
    1980s2
    1990s87
    2000s86
    2010s94

    World aggregate by year

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

    YearWorld
    201817.16
    201717.15
    201617.34
    201517.61
    201417.94
    201317.95
    201216.28
    201116.1
    201015.98
    200916.05
    200816.1
    200716.26

    By region, 2018

    World Bank regionValue
    South Asia28.82
    East Asia & Pacific15.31
    North America14.68
    Latin America & Caribbean 14.46
    Middle East, North Africa, Afghanistan & Pakistan12.95
    Europe & Central Asia11.93

    First rows

    pupil-teacher-ratio-upper-secondary.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200730.74908
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201532.13567
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201631.628
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201732.66596
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201832.84078
    AlbaniaALBEurope & Central AsiaUpper middle income199816.58858
    AlbaniaALBEurope & Central AsiaUpper middle income199917.32423
    AlbaniaALBEurope & Central AsiaUpper middle income200018.26418

    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, upper 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?

    India, with 33.14.

    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-upper-secondary.csv"))

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

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

    How many countries report a value for 2018?

    57 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-upper-secondary.csv"))

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

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

    What is the median across countries in 2018?

    14.49 (median of the 57 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-upper-secondary.csv"))

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

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

    Which country rose the most between 2009 and 2018?

    India: from 21.16 to 33.14, a rise of 11.99 (out of 36 countries with both years).

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

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

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

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

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

    Which year has the most countries reporting?

    2017, with 94 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-upper-secondary.csv"))

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

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