DataBrighten

    GOAL 2: Zero Hunger (5 year moving average)

    4,300 × 6rows × columns: 215 countries, 2004 to 2023

    Real data: World Bank, Statistical Performance Indicators, indicator SPI.D3.2.HNGR, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows4,300country-year values
    Countries215with at least one value
    Years2004 – 202320 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    SDG Goal 2 data availability. Source: UN Global SDG Indicators Database

    The numbers in 2023

    In 2023, 215 countries have a value. At the top, 6 countries tie at 0.9 (e.g. Canada, Korea, Rep., Mexico); at the bottom, 6 countries tie at 0 (e.g. American Samoa, Curacao, Gibraltar). The median country value is 0.7.

    Top 10 countries, 2023

    5 year moving average

    Source: World Bank, SPI.D3.2.HNGR, retrieved 19 November 2026. Computed from goal-2-zero-hunger-5-year-moving-average.csv.

    Highest, 2023

    Ties are listed A to Z.

    #CountryValue
    1Canada0.9
    2Korea, Rep.0.9
    3Mexico0.9
    4Morocco0.9
    5Norway0.9
    6Thailand0.9
    7Afghanistan0.8
    8Austria0.8
    9Bangladesh0.8
    10Benin0.8

    Lowest, 2023

    Ties are listed A to Z.

    #CountryValue
    1St. Martin (French part)0
    2Monaco0
    3Isle of Man0
    4Gibraltar0
    5Curacao0
    6American Samoa0
    7Virgin Islands (U.S.)0.1
    8Turks and Caicos Islands0.1
    9Sint Maarten (Dutch part)0.1
    10Northern Mariana Islands0.1
    How many countries report, by decade
    DecadeMost countries in one year
    2000s215
    2010s215
    2020s215

    First rows

    goal-2-zero-hunger-5-year-moving-average.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20040.833
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20050.857
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20060.857
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20070.857
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20080.857
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20090.571
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20100.571
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20110.571

    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
    valuenumberGOAL 2: Zero Hunger (5 year moving average), 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 2023?

    There is a tie: 6 countries share the highest value, 0.9 (for example Canada, Korea, Rep., Mexico).

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

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

    SQL (table wb = the CSV)

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

    pandas (df = pd.read_csv("goal-2-zero-hunger-5-year-moving-average.csv"))

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

    File: goal-2-zero-hunger-5-year-moving-average.csv

    How many countries report a value for 2023?

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

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

    =COUNTIF(E2:E100000,2023)

    SQL (table wb = the CSV)

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

    pandas (df = pd.read_csv("goal-2-zero-hunger-5-year-moving-average.csv"))

    (df.year == 2023).sum()

    File: goal-2-zero-hunger-5-year-moving-average.csv

    What is the median across countries in 2023?

    0.7 (median of the 215 country values; not a World Bank aggregate).

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

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

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

    pandas (df = pd.read_csv("goal-2-zero-hunger-5-year-moving-average.csv"))

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

    File: goal-2-zero-hunger-5-year-moving-average.csv

    Which country rose the most between 2013 and 2023?

    New Zealand: from 0.286 to 0.8, a rise of 0.514 (out of 215 countries with both years).

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

    Use the wide file (goal-2-zero-hunger-5-year-moving-average-wide.csv): add a column = [2023] - [2013], 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 = 2013 AND b.year = 2023 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("goal-2-zero-hunger-5-year-moving-average.csv"))

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

    File: goal-2-zero-hunger-5-year-moving-average.csv

    Which year has the most countries reporting?

    2023, with 215 countries.

    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("goal-2-zero-hunger-5-year-moving-average.csv"))

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

    File: goal-2-zero-hunger-5-year-moving-average.csv