School enrollment, primary and secondary (gross), gender parity index (GPI)
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.
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
Highest, 2020
| # | Country | Value |
|---|---|---|
| 1 | Senegal | 1.15 |
| 2 | Bangladesh | 1.15 |
| 3 | Curacao | 1.08 |
| 4 | Belgium | 1.08 |
| 5 | Sweden | 1.07 |
| 6 | Mauritania | 1.07 |
| 7 | Seychelles | 1.06 |
| 8 | West Bank and Gaza | 1.06 |
| 9 | Burundi | 1.06 |
| 10 | Finland | 1.06 |
Lowest, 2020
| # | Country | Value |
|---|---|---|
| 1 | Benin | 0.89 |
| 2 | Liechtenstein | 0.897 |
| 3 | Mali | 0.898 |
| 4 | Cote d'Ivoire | 0.898 |
| 5 | Mozambique | 0.938 |
| 6 | Peru | 0.95 |
| 7 | Lao PDR | 0.957 |
| 8 | Morocco | 0.962 |
| 9 | Switzerland | 0.969 |
| 10 | Germany | 0.97 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1970s | 116 |
| 1980s | 109 |
| 1990s | 141 |
| 2000s | 147 |
| 2010s | 144 |
| 2020s | 115 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2020 | 0.986 |
| 2019 | 0.988 |
| 2018 | 0.987 |
| 2017 | 0.998 |
| 2016 | 1 |
| 2015 | 0.995 |
| 2014 | 0.994 |
| 2013 | 0.992 |
| 2012 | 0.977 |
| 2011 | 0.974 |
| 2010 | 0.971 |
| 2009 | 0.972 |
By region, 2020
| World Bank region | Value |
|---|---|
| Latin America & Caribbean | 1.02 |
| East Asia & Pacific | 1.01 |
| Europe & Central Asia | 0.994 |
| South Asia | 0.992 |
| North America | 0.988 |
| Middle East, North Africa, Afghanistan & Pakistan | 0.971 |
| Sub-Saharan Africa | 0.941 |
First rows
school-enrollment-primary-and-secondary-gross-gender-parity-index-gpi.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1970 | 0.167199999094009 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1971 | 0.161200001835823 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1972 | 0.160840004682541 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1973 | 0.168740004301071 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1974 | 0.16695000231266 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1975 | 0.173899993300438 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1976 | 0.180629998445511 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1977 | 0.192279994487762 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| country | text | Country or economy, World Bank name |
| iso3 | text | ISO 3166-1 alpha-3 code |
| region | text | World Bank region |
| income_group | text | World Bank income group |
| year | number | Calendar year of the value |
| value | number | School 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