DataBrighten

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

    7,478 × 6rows × columns: 206 countries, 1970 to 2022

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

    textnumberdateyes/no
    Rows7,478country-year values
    Countries206with 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 education is the ratio of girls to boys enrolled at primary level in public and private schools.

    The numbers in 2020

    In 2020, 142 countries have a value. The highest is Senegal (1.15); the lowest is Guinea (0.848). The median country value is 0.997. The World Bank's World aggregate for 2020 is 0.983.

    Top 10 countries, 2020

    GPI

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

    Highest, 2020

    #CountryValue
    1Senegal1.15
    2Kuwait1.13
    3Gambia, The1.12
    4Gibraltar1.09
    5Bangladesh1.09
    6Palau1.07
    7Mauritania1.07
    8Oman1.06
    9Iran, Islamic Rep.1.06
    10Kiribati1.06

    Lowest, 2020

    #CountryValue
    1Guinea0.848
    2Niger0.898
    3Ethiopia0.902
    4Mali0.908
    5Benin0.925
    6Dominica0.933
    7Mozambique0.943
    8Cote d'Ivoire0.944
    9Curacao0.946
    10Congo, Dem. Rep.0.948
    How many countries report, by decade
    DecadeMost countries in one year
    1970s138
    1980s142
    1990s167
    2000s171
    2010s170
    2020s142

    World aggregate by year

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

    YearWorld
    20200.983
    20190.984
    20180.982
    20171
    20161.01
    20150.999
    20140.998
    20130.998
    20120.981
    20110.977
    20100.975
    20090.972

    By region, 2020

    World Bank regionValue
    East Asia & Pacific0.997
    Europe & Central Asia0.997
    North America0.995
    South Asia0.991
    Latin America & Caribbean 0.982
    Middle East, North Africa, Afghanistan & Pakistan0.976
    Sub-Saharan Africa 0.958

    First rows

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

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19700.169190004467964
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19710.164529994130135
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19720.168249994516373
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19730.175960004329681
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19740.174669995903969
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19750.18308000266552
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19760.189060002565384
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19770.198269993066788

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

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

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

    How many countries report a value for 2020?

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

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

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

    What is the median across countries in 2020?

    0.997 (median of the 142 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-gross-gender-parity-index-gpi.csv"))

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

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

    Which country rose the most between 2010 and 2020?

    Kuwait: from 0.98 to 1.13, a rise of 0.148 (out of 117 countries with both years).

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

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

    Which year has the most countries reporting?

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

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

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