Secondary education, pupils
Real data: World Bank, World Development Indicators, indicator SE.SEC.ENRL, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Secondary education pupils is the total number of pupils enrolled at secondary level in public and private schools.
The numbers in 2024
In 2024, 111 countries have a value. The highest is India (131.51 million); the lowest is Tuvalu (1,145). The median country value is 562,417. The World Bank's World aggregate for 2024 is 651.68 million.
Top 10 countries, 2024
value
Highest, 2024
| # | Country | Value |
|---|---|---|
| 1 | India | 131.51 million |
| 2 | China | 97.98 million |
| 3 | Indonesia | 28.00 million |
| 4 | Brazil | 21.50 million |
| 5 | Pakistan | 19.70 million |
| 6 | Bangladesh | 15.07 million |
| 7 | Mexico | 13.99 million |
| 8 | Philippines | 11.87 million |
| 9 | Egypt, Arab Rep. | 11.56 million |
| 10 | Germany | 6.97 million |
Lowest, 2024
| # | Country | Value |
|---|---|---|
| 1 | Tuvalu | 1,145 |
| 2 | Palau | 1,389 |
| 3 | Naoero | 1,542 |
| 4 | San Marino | 1,676 |
| 5 | British Virgin Islands | 2,300 |
| 6 | Gibraltar | 2,582 |
| 7 | Turks and Caicos Islands | 3,004 |
| 8 | Monaco | 3,469 |
| 9 | Cayman Islands | 4,049 |
| 10 | Marshall Islands | 5,009 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1970s | 150 |
| 1980s | 146 |
| 1990s | 150 |
| 2000s | 155 |
| 2010s | 159 |
| 2020s | 155 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2024 | 651.68 million |
| 2023 | 647.94 million |
| 2022 | 642.04 million |
| 2021 | 632.30 million |
| 2020 | 618.53 million |
| 2019 | 606.48 million |
| 2018 | 599.72 million |
| 2017 | 590.13 million |
| 2016 | 587.72 million |
| 2015 | 583.34 million |
| 2014 | 580.92 million |
| 2013 | 573.58 million |
By region, 2024
| World Bank region | Value |
|---|---|
| East Asia & Pacific | 174.05 million |
| South Asia | 152.88 million |
| Europe & Central Asia | 83.79 million |
| Sub-Saharan Africa | 81.43 million |
| Middle East, North Africa, Afghanistan & Pakistan | 68.09 million |
| Latin America & Caribbean | 63.30 million |
| North America | 28.14 million |
First rows
secondary-education-pupils.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1970 | 116174 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1971 | 134069 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1972 | 153060 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1973 | 165346 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1974 | 172797 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1975 | 185723 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1976 | 204889 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1977 | 223379 |
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, 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 2024?
India, with 131.51 million.
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2024)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2024)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2024
AND value = (SELECT MAX(value) FROM wb WHERE year = 2024);pandas (df = pd.read_csv("secondary-education-pupils.csv"))
y = df[df.year == 2024]
y[y.value == y.value.max()][["country", "value"]]File: secondary-education-pupils.csv
How many countries report a value for 2024?
111 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2024)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2024;pandas (df = pd.read_csv("secondary-education-pupils.csv"))
(df.year == 2024).sum()File: secondary-education-pupils.csv
What is the median across countries in 2024?
562,417 (median of the 111 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2024))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 = 2024 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2024) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2024));pandas (df = pd.read_csv("secondary-education-pupils.csv"))
df[df.year == 2024]["value"].median()File: secondary-education-pupils.csv
Which country rose the most between 2014 and 2024?
China: from 88.21 million to 97.98 million, a rise of 9.77 million (out of 88 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (secondary-education-pupils-wide.csv): add a column = [2024] - [2014], 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 = 2014 AND b.year = 2024 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("secondary-education-pupils.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2024] - w[2014]).dropna().nlargest(1)File: secondary-education-pupils.csv
Which year has the most countries reporting?
2011, with 159 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-pupils.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: secondary-education-pupils.csv