DataBrighten

    School enrollment, secondary (gross), gender parity index (GPI)

    6,020 × 6rows × columns: 205 countries, 1970 to 2022

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

    textnumberdateyes/no
    Rows6,020country-year values
    Countries205with at least one value
    Years1970 – 202253 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Gender parity index for gross enrollment ratio in secondary education is the ratio of girls to boys enrolled at secondary level in public and private schools.

    The numbers in 2020

    In 2020, 116 countries have a value. The highest is Curacao (1.22); the lowest is Benin (0.809). The median country value is 1.01. The World Bank's World aggregate for 2020 is 0.989.

    Top 10 countries, 2020

    GPI

    Source: World Bank, SE.ENR.SECO.FM.ZS, retrieved 19 November 2026. Computed from school-enrollment-secondary-gross-gender-parity-index-gpi.csv.

    Highest, 2020

    #CountryValue
    1Curacao1.22
    2Burundi1.21
    3Tonga1.18
    4Bangladesh1.17
    5Senegal1.16
    6Vanuatu1.14
    7Belgium1.13
    8Uruguay1.11
    9Marshall Islands1.11
    10Ireland1.1

    Lowest, 2020

    #CountryValue
    1Benin0.809
    2Cote d'Ivoire0.827
    3Liechtenstein0.849
    4Cameroon0.872
    5Mali0.876
    6Oman0.919
    7Saudi Arabia0.928
    8Mozambique0.93
    9Peru0.934
    10Lao PDR0.945
    How many countries report, by decade
    DecadeMost countries in one year
    1970s122
    1980s112
    1990s144
    2000s149
    2010s146
    2020s116

    World aggregate by year

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

    YearWorld
    20200.989
    20190.993
    20180.992
    20170.989
    20160.99
    20150.99
    20140.99
    20130.985
    20120.973
    20110.971
    20100.968
    20090.973

    By region, 2020

    World Bank regionValue
    Latin America & Caribbean 1.05
    East Asia & Pacific1.02
    Europe & Central Asia0.993
    South Asia0.992
    North America0.982
    Middle East, North Africa, Afghanistan & Pakistan0.965
    Sub-Saharan Africa 0.9

    First rows

    school-enrollment-secondary-gross-gender-parity-index-gpi.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19700.156760007143021
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19710.146139994263649
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19720.132310003042221
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19730.142179995775223
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19740.138710007071495
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19750.141039997339249
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19760.151659995317459
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19770.172279998660088

    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
    valuenumberSchool enrollment, secondary (gross), gender parity index (GPI), 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 2020?

    Curacao, with 1.22.

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

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

    SQL (table wb = the CSV)

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

    pandas (df = pd.read_csv("school-enrollment-secondary-gross-gender-parity-index-gpi.csv"))

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

    File: school-enrollment-secondary-gross-gender-parity-index-gpi.csv

    How many countries report a value for 2020?

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

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

    =COUNTIF(E2:E100000,2020)

    SQL (table wb = the CSV)

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

    pandas (df = pd.read_csv("school-enrollment-secondary-gross-gender-parity-index-gpi.csv"))

    (df.year == 2020).sum()

    File: school-enrollment-secondary-gross-gender-parity-index-gpi.csv

    What is the median across countries in 2020?

    1.01 (median of the 116 country values; not a World Bank aggregate).

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

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

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

    pandas (df = pd.read_csv("school-enrollment-secondary-gross-gender-parity-index-gpi.csv"))

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

    File: school-enrollment-secondary-gross-gender-parity-index-gpi.csv

    Which country rose the most between 2010 and 2020?

    Burundi: from 0.717 to 1.21, a rise of 0.498 (out of 90 countries with both years).

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

    Use the wide file (school-enrollment-secondary-gross-gender-parity-index-gpi-wide.csv): add a column = [2020] - [2010], 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 = 2010 AND b.year = 2020 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("school-enrollment-secondary-gross-gender-parity-index-gpi.csv"))

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

    File: school-enrollment-secondary-gross-gender-parity-index-gpi.csv

    Which year has the most countries reporting?

    2005, with 149 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("school-enrollment-secondary-gross-gender-parity-index-gpi.csv"))

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

    File: school-enrollment-secondary-gross-gender-parity-index-gpi.csv