DataBrighten

    Government expenditure per student, secondary (% of GDP per capita)

    1,442 × 6rows × columns: 167 countries, 1995 to 2018

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

    textnumberdateyes/no
    Rows1,442country-year values
    Countries167with at least one value
    Years1995 – 201823 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Government expenditure per student is the average general government expenditure (current, capital, and transfers) per student in the given level of education, expressed as a percentage of GDP per capita.

    The numbers in 2016

    In 2016, 77 countries have a value. The highest is Bosnia and Herzegovina (43.51); the lowest is Djibouti (0.728). The median country value is 20.61. The World Bank's World aggregate for 2013 is 20.08.

    Top 10 countries, 2016

    % of GDP per capita

    Source: World Bank, SE.XPD.SECO.PC.ZS, retrieved 19 November 2026. Computed from government-expenditure-per-student-secondary-percent-of-gdp-per-capita.csv.

    Highest, 2016

    #CountryValue
    1Bosnia and Herzegovina43.51
    2Cyprus39.29
    3Rwanda37.15
    4Oman34.97
    5Mauritius31.33
    6Moldova30.51
    7Korea, Rep.28.18
    8Barbados28.04
    9Austria27.72
    10Jamaica27.6

    Lowest, 2016

    #CountryValue
    1Djibouti0.728
    2Monaco4.95
    3Guatemala5.12
    4Ecuador5.29
    5Sierra Leone5.51
    6Albania9.82
    7Bangladesh9.88
    8Senegal11.43
    9Paraguay11.92
    10South Sudan11.95
    How many countries report, by decade
    DecadeMost countries in one year
    1990s55
    2000s79
    2010s95

    World aggregate by year

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

    YearWorld
    201320.08
    201120.68

    By region, 2016

    World Bank regionValue
    Europe & Central Asia23.02
    North America22.13
    Latin America & Caribbean 15.02
    South Asia11.98

    First rows

    government-expenditure-per-student-secondary-percent-of-gdp-per-capita.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201013.2609
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201112.56712
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20128.53024
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201311.32094
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201412.03027
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201510.29234
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201611.98575
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201711.3072

    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
    valuenumberGovernment expenditure per student, secondary (% of GDP per capita), 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 2016?

    Bosnia and Herzegovina, with 43.51.

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

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

    SQL (table wb = the CSV)

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

    pandas (df = pd.read_csv("government-expenditure-per-student-secondary-percent-of-gdp-per-capita.csv"))

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

    File: government-expenditure-per-student-secondary-percent-of-gdp-per-capita.csv

    How many countries report a value for 2016?

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

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

    =COUNTIF(E2:E100000,2016)

    SQL (table wb = the CSV)

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

    pandas (df = pd.read_csv("government-expenditure-per-student-secondary-percent-of-gdp-per-capita.csv"))

    (df.year == 2016).sum()

    File: government-expenditure-per-student-secondary-percent-of-gdp-per-capita.csv

    What is the median across countries in 2016?

    20.61 (median of the 77 country values; not a World Bank aggregate).

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

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

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

    pandas (df = pd.read_csv("government-expenditure-per-student-secondary-percent-of-gdp-per-capita.csv"))

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

    File: government-expenditure-per-student-secondary-percent-of-gdp-per-capita.csv

    Which country rose the most between 2006 and 2016?

    Mauritius: from 16.24 to 31.33, a rise of 15.09 (out of 38 countries with both years).

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

    Use the wide file (government-expenditure-per-student-secondary-percent-of-gdp-per-capita-wide.csv): add a column = [2016] - [2006], 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 = 2006 AND b.year = 2016 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("government-expenditure-per-student-secondary-percent-of-gdp-per-capita.csv"))

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

    File: government-expenditure-per-student-secondary-percent-of-gdp-per-capita.csv

    Which year has the most countries reporting?

    2011, with 95 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("government-expenditure-per-student-secondary-percent-of-gdp-per-capita.csv"))

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

    File: government-expenditure-per-student-secondary-percent-of-gdp-per-capita.csv