DataBrighten

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

    5,854 × 6rows × columns: 204 countries, 1970 to 2022

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

    textnumberdateyes/no
    Rows5,854country-year values
    Countries204with 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 primary and secondary education is the ratio of girls to boys enrolled at primary and secondary levels in public and private schools.

    The numbers in 2020

    In 2020, 115 countries have a value. The highest is Senegal (1.15); the lowest is Benin (0.89). The median country value is 1.01. The World Bank's World aggregate for 2020 is 0.986.

    Top 10 countries, 2020

    GPI

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

    Highest, 2020

    #CountryValue
    1Senegal1.15
    2Bangladesh1.15
    3Curacao1.08
    4Belgium1.08
    5Sweden1.07
    6Mauritania1.07
    7Seychelles1.06
    8West Bank and Gaza1.06
    9Burundi1.06
    10Finland1.06

    Lowest, 2020

    #CountryValue
    1Benin0.89
    2Liechtenstein0.897
    3Mali0.898
    4Cote d'Ivoire0.898
    5Mozambique0.938
    6Peru0.95
    7Lao PDR0.957
    8Morocco0.962
    9Switzerland0.969
    10Germany0.97
    How many countries report, by decade
    DecadeMost countries in one year
    1970s116
    1980s109
    1990s141
    2000s147
    2010s144
    2020s115

    World aggregate by year

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

    YearWorld
    20200.986
    20190.988
    20180.987
    20170.998
    20161
    20150.995
    20140.994
    20130.992
    20120.977
    20110.974
    20100.971
    20090.972

    By region, 2020

    World Bank regionValue
    Latin America & Caribbean 1.02
    East Asia & Pacific1.01
    Europe & Central Asia0.994
    South Asia0.992
    North America0.988
    Middle East, North Africa, Afghanistan & Pakistan0.971
    Sub-Saharan Africa 0.941

    First rows

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

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19700.167199999094009
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19710.161200001835823
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19720.160840004682541
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19730.168740004301071
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19740.16695000231266
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19750.173899993300438
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19760.180629998445511
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19770.192279994487762

    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, primary and 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?

    Senegal, with 1.15.

    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-primary-and-secondary-gross-gender-parity-index-gpi.csv"))

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

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

    How many countries report a value for 2020?

    115 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-primary-and-secondary-gross-gender-parity-index-gpi.csv"))

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

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

    What is the median across countries in 2020?

    1.01 (median of the 115 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-primary-and-secondary-gross-gender-parity-index-gpi.csv"))

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

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

    Which country rose the most between 2010 and 2020?

    Senegal: from 0.997 to 1.15, a rise of 0.157 (out of 87 countries with both years).

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

    Use the wide file (school-enrollment-primary-and-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-primary-and-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-primary-and-secondary-gross-gender-parity-index-gpi.csv

    Which year has the most countries reporting?

    2005, with 147 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-primary-and-secondary-gross-gender-parity-index-gpi.csv"))

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

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