DataBrighten

    Average precipitation in depth (mm per year)

    10,448 × 6rows × columns: 182 countries, 1961 to 2022

    Real data: World Bank, World Development Indicators, indicator AG.LND.PRCP.MM, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows10,448country-year values
    Countries182with at least one value
    Years1961 – 202262 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Average precipitation is the long-term average in depth (over space and time) of annual precipitation in the country. Precipitation is defined as any kind of water that falls from clouds as a liquid or a solid.

    Limits and exceptions (World Bank note)

    The data are collected by the Food and Agriculture Organization of the United Nations (FAO) through annual questionnaires. The FAO tries to impose standard definitions and reporting methods, but complete consistency across countries and over time is not possible.

    The numbers in 2022

    In 2022, 180 countries have a value. The highest is Colombia (3,240); the lowest is Egypt, Arab Rep. (18.1). The median country value is 1,036.

    Top 10 countries, 2022

    mm per year

    Source: World Bank, AG.LND.PRCP.MM, retrieved 19 November 2026. Computed from average-precipitation-in-depth-mm-per-year.csv.

    Highest, 2022

    #CountryValue
    1Colombia3,240
    2Sao Tome and Principe3,200
    3Papua New Guinea3,142
    4Solomon Islands3,028
    5Panama2,928
    6Costa Rica2,926
    7Samoa2,880
    8Malaysia2,875
    9Brunei Darussalam2,722
    10Indonesia2,702

    Lowest, 2022

    #CountryValue
    1Egypt, Arab Rep.18.1
    2Libya56
    3Saudi Arabia59
    4Qatar74
    5United Arab Emirates78
    6Bahrain83
    7Algeria89
    8Mauritania92
    9Jordan111
    10Kuwait121
    How many countries report, by decade
    DecadeMost countries in one year
    1960s157
    1970s157
    1980s157
    1990s180
    2000s180
    2010s182
    2020s182

    First rows

    average-precipitation-in-depth-mm-per-year.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1961327
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1962327
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1963327
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1964327
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1965327
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1966327
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1967327
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1968327

    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
    valuenumberAverage precipitation in depth (mm per year), 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 2022?

    Colombia, with 3,240.

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

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

    SQL (table wb = the CSV)

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

    pandas (df = pd.read_csv("average-precipitation-in-depth-mm-per-year.csv"))

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

    File: average-precipitation-in-depth-mm-per-year.csv

    How many countries report a value for 2022?

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

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

    =COUNTIF(E2:E100000,2022)

    SQL (table wb = the CSV)

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

    pandas (df = pd.read_csv("average-precipitation-in-depth-mm-per-year.csv"))

    (df.year == 2022).sum()

    File: average-precipitation-in-depth-mm-per-year.csv

    What is the median across countries in 2022?

    1,036 (median of the 180 country values; not a World Bank aggregate).

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

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

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

    pandas (df = pd.read_csv("average-precipitation-in-depth-mm-per-year.csv"))

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

    File: average-precipitation-in-depth-mm-per-year.csv

    Which country rose the most between 2012 and 2022?

    Afghanistan: from 327 to 327, a rise of 0 (out of 180 countries with both years).

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

    Use the wide file (average-precipitation-in-depth-mm-per-year-wide.csv): add a column = [2022] - [2012], 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 = 2012 AND b.year = 2022 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("average-precipitation-in-depth-mm-per-year.csv"))

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

    File: average-precipitation-in-depth-mm-per-year.csv

    Which year has the most countries reporting?

    2021, with 182 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("average-precipitation-in-depth-mm-per-year.csv"))

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

    File: average-precipitation-in-depth-mm-per-year.csv