DataBrighten

    Secondary education, general pupils (% female)

    6,785 × 6rows × columns: 210 countries, 1970 to 2019

    Real data: World Bank, World Development Indicators, indicator SE.SEC.ENRL.GC.FE.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows6,785country-year values
    Countries210with at least one value
    Years1970 – 201950 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Secondary general pupils are the number of secondary students enrolled in general education programs, including teacher training.

    Limits and exceptions (World Bank note)

    The percentage of female enrollment is limited in assessing gender parity, because it's affected by the gender composition of population. Ratio of female to male in enrollment rate provides a population adjusted measure of gender parity.

    The numbers in 2017

    In 2017, 155 countries have a value. The highest is Lesotho (57.18); the lowest is Afghanistan (35.22). The median country value is 50.01. The World Bank's World aggregate for 2018 is 48.61.

    Top 10 countries, 2017

    % female

    Source: World Bank, SE.SEC.ENRL.GC.FE.ZS, retrieved 19 November 2026. Computed from secondary-education-general-pupils-percent-female.csv.

    Highest, 2017

    #CountryValue
    1Lesotho57.18
    2Uruguay54.94
    3Kiribati54.81
    4Rwanda54.26
    5Bangladesh53.86
    6Italy53.41
    7Seychelles53.1
    8Lebanon53.08
    9Sao Tome and Principe52.96
    10Tunisia52.79

    Lowest, 2017

    #CountryValue
    1Afghanistan35.22
    2Central African Republic40.05
    3Niger41.36
    4Togo42.05
    5Cote d'Ivoire42.3
    6Pakistan43.09
    7Mali44.67
    8Djibouti45.09
    9Azerbaijan46.31
    10Eritrea46.47
    How many countries report, by decade
    DecadeMost countries in one year
    1970s143
    1980s137
    1990s152
    2000s163
    2010s164

    World aggregate by year

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

    YearWorld
    201848.61
    201748.55
    201648.53
    201548.5
    201448.55
    201348.49
    201248.16
    201148.08
    201048.02
    200947.99
    200847.72
    200747.58

    By region, 2017

    World Bank regionValue
    Latin America & Caribbean 49.91
    Europe & Central Asia49.7
    North America48.84
    East Asia & Pacific48.8
    Middle East, North Africa, Afghanistan & Pakistan48.4
    South Asia48.09
    Sub-Saharan Africa 46.74

    First rows

    secondary-education-general-pupils-percent-female.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197013.69402
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197112.62248
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197211.44107
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197312.1344
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197411.82518
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197512.03251
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197612.98029
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197714.41377

    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
    valuenumberSecondary education, general pupils (% female), 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?

    Lesotho, with 57.18.

    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-percent-female.csv"))

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

    File: secondary-education-general-pupils-percent-female.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-percent-female.csv"))

    (df.year == 2017).sum()

    File: secondary-education-general-pupils-percent-female.csv

    What is the median across countries in 2017?

    50.01 (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-percent-female.csv"))

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

    File: secondary-education-general-pupils-percent-female.csv

    Which country rose the most between 2007 and 2017?

    Burundi: from 41.76 to 51.67, a rise of 9.91 (out of 136 countries with both years).

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

    Use the wide file (secondary-education-general-pupils-percent-female-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-percent-female.csv"))

    w = df.pivot(index="country", columns="year", values="value")
    (w[2017] - w[2007]).dropna().nlargest(1)

    File: secondary-education-general-pupils-percent-female.csv

    Which year has the most countries reporting?

    2016, with 164 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-percent-female.csv"))

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

    File: secondary-education-general-pupils-percent-female.csv