DataBrighten

    Pupil-teacher ratio, preprimary

    4,330 × 6rows × columns: 201 countries, 1970 to 2019

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

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

    What it measures

    Preprimary school pupil-teacher ratio is the average number of pupils per teacher in preprimary 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 2017

    In 2017, 106 countries have a value. The highest is Tanzania (114); the lowest is Sweden (5.52). The median country value is 16.29. The World Bank's World aggregate for 2018 is 17.45.

    Top 10 countries, 2017

    value

    Source: World Bank, SE.PRE.ENRL.TC.ZS, retrieved 19 November 2026. Computed from pupil-teacher-ratio-preprimary.csv.

    Highest, 2017

    #CountryValue
    1Tanzania114
    2United Kingdom61.81
    3Namibia37.61
    4Liberia37.31
    5Gambia, The34.75
    6Cambodia34.42
    7Mongolia33.34
    8Timor-Leste33.18
    9Rwanda32.36
    10Burundi32.07

    Lowest, 2017

    #CountryValue
    1Sweden5.52
    2Liechtenstein7.58
    3Germany7.7
    4Belarus7.76
    5New Zealand7.82
    6St. Vincent and the Grenadines7.88
    7Armenia8.39
    8Kuwait8.73
    9Lithuania9.67
    10Latvia9.72
    How many countries report, by decade
    DecadeMost countries in one year
    1970s66
    1980s92
    1990s111
    2000s117
    2010s113

    World aggregate by year

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

    YearWorld
    201817.45
    201717.72
    201617.83
    201517.71
    201417.75
    201318.27
    201217.9
    201117.73
    201017.69
    200917.7
    200817.47
    200717.41

    By region, 2017

    World Bank regionValue
    Sub-Saharan Africa 33.04
    Latin America & Caribbean 20.55
    Middle East, North Africa, Afghanistan & Pakistan20.31
    East Asia & Pacific17.74
    North America14.55
    Europe & Central Asia11.4

    First rows

    pupil-teacher-ratio-preprimary.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197023.30952
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197123.69048
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197220.98462
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197318.26027
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197419.90541
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197519.90526
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197617.62805
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197716.96818

    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, preprimary, 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 2017?

    Tanzania, with 114.

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

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

    SQL (table wb = the CSV)

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

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

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

    File: pupil-teacher-ratio-preprimary.csv

    How many countries report a value for 2017?

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

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

    =COUNTIF(E2:E100000,2017)

    SQL (table wb = the CSV)

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

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

    (df.year == 2017).sum()

    File: pupil-teacher-ratio-preprimary.csv

    What is the median across countries in 2017?

    16.29 (median of the 106 country values; not a World Bank aggregate).

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

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

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

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

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

    File: pupil-teacher-ratio-preprimary.csv

    Which country rose the most between 2007 and 2017?

    Tanzania: from 43.06 to 114, a rise of 70.91 (out of 74 countries with both years).

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

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

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

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

    File: pupil-teacher-ratio-preprimary.csv

    Which year has the most countries reporting?

    2001, with 117 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-preprimary.csv"))

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

    File: pupil-teacher-ratio-preprimary.csv