DataBrighten

    Population Age primary for Reference Year 2019;

    333 × 6rows × columns: 121 countries, 2001 to 2023

    Real data: World Bank, Education Statistics, indicator SE.LPV.POP.PRIM, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows333country-year values
    Countries121with at least one value
    Years2001 – 202317 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    World Bank staff estimates using the World Bank's total population and age sex distributions of the United Nations Population Division's as of June, 2022.

    The numbers in 2021

    In 2021, 52 countries have a value. The highest is United States (29.88 million); the lowest is Malta (31,205). The median country value is 595,836.

    Top 10 countries, 2021

    value

    Source: World Bank, SE.LPV.POP.PRIM, retrieved 19 November 2026. Computed from population-age-primary-for-reference-year-2019.csv.

    Highest, 2021

    #CountryValue
    1United States29.88 million
    2Egypt, Arab Rep.15.86 million
    3Iran, Islamic Rep.9.41 million
    4South Africa8.64 million
    5Russian Federation8.59 million
    6Turkiye6.54 million
    7United Kingdom5.77 million
    8France4.73 million
    9Morocco4.63 million
    10Saudi Arabia4.36 million

    Lowest, 2021

    #CountryValue
    1Malta31,205
    2Macao SAR, China40,598
    3Montenegro46,942
    4Cyprus92,314
    5Bahrain137,701
    6Latvia138,652
    7North Macedonia140,162
    8Lithuania142,778
    9Slovenia156,146
    10Qatar187,480
    How many countries report, by decade
    DecadeMost countries in one year
    2000s51
    2010s49
    2020s52

    First rows

    population-age-primary-for-reference-year-2019.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20137203069.5
    AlbaniaALBEurope & Central AsiaUpper middle income2019193570
    AlbaniaALBEurope & Central AsiaUpper middle income2021193357
    AlgeriaDZAMiddle East, North Africa, Afghanistan & PakistanUpper middle income20075085755
    ArgentinaARGLatin America & CaribbeanUpper middle income20065100772.5
    ArgentinaARGLatin America & CaribbeanUpper middle income20135100772.5
    ArgentinaARGLatin America & CaribbeanUpper middle income20195100772.5
    ArmeniaARMEurope & Central AsiaUpper middle income2003196742

    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
    valuenumberPopulation Age primary for Reference Year 2019;, 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 2021?

    United States, with 29.88 million.

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

    =FILTER(A2:A100000,(E2:E100000=2021)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2021)))

    SQL (table wb = the CSV)

    SELECT country, value FROM wb WHERE year = 2021
      AND value = (SELECT MAX(value) FROM wb WHERE year = 2021);

    pandas (df = pd.read_csv("population-age-primary-for-reference-year-2019.csv"))

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

    File: population-age-primary-for-reference-year-2019.csv

    How many countries report a value for 2021?

    52 of the 217 economies in the file's country list.

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

    =COUNTIF(E2:E100000,2021)

    SQL (table wb = the CSV)

    SELECT COUNT(*) FROM wb WHERE year = 2021;

    pandas (df = pd.read_csv("population-age-primary-for-reference-year-2019.csv"))

    (df.year == 2021).sum()

    File: population-age-primary-for-reference-year-2019.csv

    What is the median across countries in 2021?

    595,836 (median of the 52 country values; not a World Bank aggregate).

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

    =MEDIAN(FILTER(F2:F100000,E2:E100000=2021))

    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 = 2021 ORDER BY value
      LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2021) % 2
      OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2021));

    pandas (df = pd.read_csv("population-age-primary-for-reference-year-2019.csv"))

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

    File: population-age-primary-for-reference-year-2019.csv

    Which country rose the most between 2011 and 2021?

    New Zealand: from 448,395 to 463,316, a rise of 14,920 (out of 39 countries with both years).

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

    Use the wide file (population-age-primary-for-reference-year-2019-wide.csv): add a column = [2021] - [2011], 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 = 2011 AND b.year = 2021 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("population-age-primary-for-reference-year-2019.csv"))

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

    File: population-age-primary-for-reference-year-2019.csv

    Which year has the most countries reporting?

    2021, with 52 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("population-age-primary-for-reference-year-2019.csv"))

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

    File: population-age-primary-for-reference-year-2019.csv