DataBrighten

    Expenditure on secondary education (% of government expenditure on education)

    2,871 × 6rows × columns: 187 countries, 1970 to 2019

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

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

    What it measures

    Expenditure on secondary education is expressed as a percentage of total general government expenditure on education. General government usually refers to local, regional and central governments.

    Limits and exceptions (World Bank note)

    Data disaggregated by level of education are estimates in some instances. It is often difficult to separate lower from upper secondary education expenditure, or pre-primary from primary.

    The numbers in 2016

    In 2016, 75 countries have a value. The highest is Kazakhstan (68.56); the lowest is Djibouti (0.829). The median country value is 33.4. The World Bank's World aggregate for 2013 is 32.73.

    Top 10 countries, 2016

    % of government expenditure on education

    Source: World Bank, SE.XPD.SECO.ZS, retrieved 19 November 2026. Computed from expenditure-on-secondary-education-percent-of-government-expenditure-on-education.csv.

    Highest, 2016

    #CountryValue
    1Kazakhstan68.56
    2Bangladesh64.33
    3Mauritius63.72
    4Brunei Darussalam60.84
    5Rwanda52.83
    6Armenia51.07
    7Sri Lanka50.41
    8Samoa42.81
    9Slovak Republic42.18
    10Japan41.98

    Lowest, 2016

    #CountryValue
    1Djibouti0.829
    2Sierra Leone11.99
    3South Sudan12.23
    4Guatemala13.31
    5Togo16.02
    6Senegal16.65
    7Niger17.42
    8Zambia19.73
    9Maldives21.61
    10Afghanistan21.83
    How many countries report, by decade
    DecadeMost countries in one year
    1970s53
    1980s56
    1990s59
    2000s92
    2010s104

    World aggregate by year

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

    YearWorld
    201332.73
    201233.95
    201134.16
    201034.52

    By region, 2016

    World Bank regionValue
    South Asia57.37
    Europe & Central Asia37.13

    First rows

    expenditure-on-secondary-education-percent-of-government-expenditure-on-education.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197140.82087
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197536.84718
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197921.31231
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income198021.50639
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income198124.53649
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income198222.49563
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income198323.06347
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201026.69373

    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
    valuenumberExpenditure on secondary education (% of government expenditure on education), 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?

    Kazakhstan, with 68.56.

    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("expenditure-on-secondary-education-percent-of-government-expenditure-on-education.csv"))

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

    File: expenditure-on-secondary-education-percent-of-government-expenditure-on-education.csv

    How many countries report a value for 2016?

    75 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("expenditure-on-secondary-education-percent-of-government-expenditure-on-education.csv"))

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

    File: expenditure-on-secondary-education-percent-of-government-expenditure-on-education.csv

    What is the median across countries in 2016?

    33.4 (median of the 75 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("expenditure-on-secondary-education-percent-of-government-expenditure-on-education.csv"))

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

    File: expenditure-on-secondary-education-percent-of-government-expenditure-on-education.csv

    Which country rose the most between 2006 and 2016?

    Bangladesh: from 43.42 to 64.33, a rise of 20.91 (out of 38 countries with both years).

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

    Use the wide file (expenditure-on-secondary-education-percent-of-government-expenditure-on-education-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("expenditure-on-secondary-education-percent-of-government-expenditure-on-education.csv"))

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

    File: expenditure-on-secondary-education-percent-of-government-expenditure-on-education.csv

    Which year has the most countries reporting?

    2013, with 104 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("expenditure-on-secondary-education-percent-of-government-expenditure-on-education.csv"))

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

    File: expenditure-on-secondary-education-percent-of-government-expenditure-on-education.csv