DataBrighten

    Coastal protection

    2,044 × 6rows × columns: 146 countries, 2012 to 2025

    Real data: World Bank, Environment, Social and Governance (ESG) Data, indicator EN.CLC.CSTP.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows2,044country-year values
    Countries146with at least one value
    Years2012 – 202514 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    The Coastal Protection goal within the Ocean Health Index assesses the amount of protection provided by marine and coastal habitats against flooding and erosion to coastal areas that people value, both inhabited (homes and other structures) and uninhabited (parks, special places, etc.). A score of 100 indicates habitats that provide coastal protection are intact or have been restored to their reference conditions.

    The numbers in 2025

    In 2025, 146 countries have a value. At the top, 4 countries tie at 100 (e.g. Benin, Morocco, Namibia); the lowest is Congo, Rep. (10.02). The median country value is 76.22.

    Top 10 countries, 2025

    value

    Source: World Bank, EN.CLC.CSTP.ZS, retrieved 19 November 2026. Computed from coastal-protection.csv.

    Highest, 2025

    Ties are listed A to Z.

    #CountryValue
    1Benin100
    2Morocco100
    3Namibia100
    4Togo100
    5Bangladesh99.97
    6Guatemala99.96
    7Ghana99.94
    8New Zealand99.91
    9Kuwait99.68
    10Guinea-Bissau99.61

    Lowest, 2025

    #CountryValue
    1Congo, Rep.10.02
    2Cuba12.32
    3Cote d'Ivoire17.82
    4Pakistan22.34
    5Guyana31.9
    6Congo, Dem. Rep.35.29
    7Bahamas, The39.9
    8Belize43.57
    9Chile51.67
    10Somalia, Fed. Rep.53.3
    How many countries report, by decade
    DecadeMost countries in one year
    2010s146
    2020s146

    First rows

    coastal-protection.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AlbaniaALBEurope & Central AsiaUpper middle income201273.96
    AlbaniaALBEurope & Central AsiaUpper middle income201373.96
    AlbaniaALBEurope & Central AsiaUpper middle income201473.96
    AlbaniaALBEurope & Central AsiaUpper middle income201573.96
    AlbaniaALBEurope & Central AsiaUpper middle income201673.96
    AlbaniaALBEurope & Central AsiaUpper middle income201773.96
    AlbaniaALBEurope & Central AsiaUpper middle income201873.96
    AlbaniaALBEurope & Central AsiaUpper middle income201973.96

    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
    valuenumberCoastal protection, 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 2025?

    There is a tie: 4 countries share the highest value, 100 (for example Benin, Morocco, Namibia).

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

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

    SQL (table wb = the CSV)

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

    pandas (df = pd.read_csv("coastal-protection.csv"))

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

    File: coastal-protection.csv

    How many countries report a value for 2025?

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

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

    =COUNTIF(E2:E100000,2025)

    SQL (table wb = the CSV)

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

    pandas (df = pd.read_csv("coastal-protection.csv"))

    (df.year == 2025).sum()

    File: coastal-protection.csv

    What is the median across countries in 2025?

    76.22 (median of the 146 country values; not a World Bank aggregate).

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

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

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

    pandas (df = pd.read_csv("coastal-protection.csv"))

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

    File: coastal-protection.csv

    Which country rose the most between 2015 and 2025?

    United States: from 77.28 to 81.5, a rise of 4.22 (out of 146 countries with both years).

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

    Use the wide file (coastal-protection-wide.csv): add a column = [2025] - [2015], 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 = 2015 AND b.year = 2025 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("coastal-protection.csv"))

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

    File: coastal-protection.csv

    Which year has the most countries reporting?

    2025, with 146 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("coastal-protection.csv"))

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

    File: coastal-protection.csv