Secondary education, general pupils
Real data: World Bank, World Development Indicators, indicator SE.SEC.ENRL.GC, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Secondary general pupils are the number of secondary students enrolled in general education programs, including teacher training.
The numbers in 2017
In 2017, 155 countries have a value. The highest is India (127.53 million); the lowest is Liechtenstein (2,120). The median country value is 563,864. The World Bank's World aggregate for 2018 is 532.00 million.
Top 10 countries, 2017
value
Highest, 2017
| # | Country | Value |
|---|---|---|
| 1 | India | 127.53 million |
| 2 | China | 67.42 million |
| 3 | United States | 24.79 million |
| 4 | Brazil | 22.16 million |
| 5 | Indonesia | 19.64 million |
| 6 | Bangladesh | 14.70 million |
| 7 | Pakistan | 12.17 million |
| 8 | Mexico | 10.28 million |
| 9 | Turkiye | 8.69 million |
| 10 | Russian Federation | 8.47 million |
Lowest, 2017
| # | Country | Value |
|---|---|---|
| 1 | Liechtenstein | 2,120 |
| 2 | British Virgin Islands | 2,176 |
| 3 | Gibraltar | 2,212 |
| 4 | Monaco | 3,092 |
| 5 | Andorra | 4,053 |
| 6 | Seychelles | 7,124 |
| 7 | Antigua and Barbuda | 7,577 |
| 8 | Grenada | 8,834 |
| 9 | Kiribati | 9,548 |
| 10 | St. Vincent and the Grenadines | 10,113 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1970s | 159 |
| 1980s | 162 |
| 1990s | 153 |
| 2000s | 165 |
| 2010s | 165 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2018 | 532.00 million |
| 2017 | 526.00 million |
| 2016 | 525.00 million |
| 2015 | 521.00 million |
| 2014 | 517.00 million |
| 2013 | 509.00 million |
| 2012 | 502.00 million |
| 2011 | 495.00 million |
| 2010 | 487.00 million |
| 2009 | 478.00 million |
| 2008 | 476.00 million |
| 2007 | 470.00 million |
By region, 2017
| World Bank region | Value |
|---|---|
| South Asia | 163.00 million |
| East Asia & Pacific | 129.00 million |
| Europe & Central Asia | 60.40 million |
| Sub-Saharan Africa | 57.80 million |
| Latin America & Caribbean | 56.20 million |
| Middle East, North Africa, Afghanistan & Pakistan | 32.20 million |
| North America | 27.30 million |
First rows
secondary-education-general-pupils.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1970 | 107609 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1971 | 127162 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1972 | 146988 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1973 | 159464 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1974 | 167397 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1975 | 179763 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1976 | 196991 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1977 | 211187 |
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 | Secondary education, general pupils, 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 2017?
India, with 127.53 million.
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2017)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2017)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2017
AND value = (SELECT MAX(value) FROM wb WHERE year = 2017);pandas (df = pd.read_csv("secondary-education-general-pupils.csv"))
y = df[df.year == 2017]
y[y.value == y.value.max()][["country", "value"]]File: secondary-education-general-pupils.csv
How many countries report a value for 2017?
155 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2017)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2017;pandas (df = pd.read_csv("secondary-education-general-pupils.csv"))
(df.year == 2017).sum()File: secondary-education-general-pupils.csv
What is the median across countries in 2017?
563,864 (median of the 155 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2017))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 = 2017 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2017) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2017));pandas (df = pd.read_csv("secondary-education-general-pupils.csv"))
df[df.year == 2017]["value"].median()File: secondary-education-general-pupils.csv
Which country rose the most between 2007 and 2017?
India: from 95.31 million to 127.53 million, a rise of 32.22 million (out of 137 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (secondary-education-general-pupils-wide.csv): add a column = [2017] - [2007], 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 = 2007 AND b.year = 2017 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("secondary-education-general-pupils.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2017] - w[2007]).dropna().nlargest(1)File: secondary-education-general-pupils.csv
Which year has the most countries reporting?
2016, with 165 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("secondary-education-general-pupils.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: secondary-education-general-pupils.csv