Mammal species, threatened

Source: worldbank.org, 01.09.2025

Year: 2018

Flag Country Value Value change, % Rank
Aruba Aruba 2 51
Afghanistan Afghanistan 11 42
Angola Angola 18 35
Albania Albania 3 50
Andorra Andorra 2 51
United Arab Emirates United Arab Emirates 8 45
Argentina Argentina 38 20
Armenia Armenia 9 44
American Samoa American Samoa 1 52
Antigua & Barbuda Antigua & Barbuda 2 51
Australia Australia 63 8
Austria Austria 3 50
Azerbaijan Azerbaijan 8 45
Burundi Burundi 14 39
Belgium Belgium 2 51
Benin Benin 13 40
Burkina Faso Burkina Faso 9 44
Bangladesh Bangladesh 37 21
Bulgaria Bulgaria 8 45
Bahrain Bahrain 3 50
Bahamas Bahamas 5 48
Bosnia & Herzegovina Bosnia & Herzegovina 4 49
Belarus Belarus 4 49
Belize Belize 10 43
Bermuda Bermuda 4 49
Bolivia Bolivia 21 33
Brazil Brazil 80 5
Barbados Barbados 3 50
Brunei Brunei 33 24
Bhutan Bhutan 25 29
Botswana Botswana 11 42
Central African Republic Central African Republic 16 37
Canada Canada 18 35
Switzerland Switzerland 3 50
Chile Chile 19 34
China China 73 6
Côte d’Ivoire Côte d’Ivoire 31 26
Cameroon Cameroon 46 15
Congo - Kinshasa Congo - Kinshasa 32 25
Congo - Brazzaville Congo - Brazzaville 15 38
Colombia Colombia 58 10
Comoros Comoros 5 48
Cape Verde Cape Verde 4 49
Costa Rica Costa Rica 11 42
Cuba Cuba 10 43
Curaçao Curaçao 3 50
Cayman Islands Cayman Islands 1 52
Cyprus Cyprus 6 47
Czechia Czechia 3 50
Germany Germany 5 48
Djibouti Djibouti 11 42
Dominica Dominica 3 50
Denmark Denmark 2 51
Dominican Republic Dominican Republic 7 46
Algeria Algeria 14 39
Ecuador Ecuador 47 14
Egypt Egypt 18 35
Eritrea Eritrea 15 38
Spain Spain 17 36
Estonia Estonia 1 52
Ethiopia Ethiopia 34 23
Finland Finland 2 51
Fiji Fiji 7 46
France France 9 44
Faroe Islands Faroe Islands 4 49
Micronesia (Federated States of) Micronesia (Federated States of) 5 48
Gabon Gabon 18 35
United Kingdom United Kingdom 5 48
Georgia Georgia 9 44
Ghana Ghana 21 33
Gibraltar Gibraltar 3 50
Guinea Guinea 30 27
Gambia Gambia 10 43
Guinea-Bissau Guinea-Bissau 14 39
Equatorial Guinea Equatorial Guinea 23 31
Greece Greece 10 43
Grenada Grenada 3 50
Greenland Greenland 9 44
Guatemala Guatemala 15 38
Guam Guam 3 50
Guyana Guyana 11 42
Hong Kong SAR China Hong Kong SAR China 4 49
Honduras Honduras 8 45
Croatia Croatia 9 44
Haiti Haiti 4 49
Hungary Hungary 3 50
Indonesia Indonesia 191 1
Isle of Man Isle of Man 0 53
India India 93 4
Ireland Ireland 5 48
Iran Iran 18 35
Iraq Iraq 13 40
Iceland Iceland 6 47
Israel Israel 15 38
Italy Italy 8 45
Jamaica Jamaica 7 46
Jordan Jordan 13 40
Japan Japan 29 28
Kazakhstan Kazakhstan 16 37
Kenya Kenya 30 27
Kyrgyzstan Kyrgyzstan 5 48
Cambodia Cambodia 39 19
Kiribati Kiribati 2 51
St. Kitts & Nevis St. Kitts & Nevis 2 51
South Korea South Korea 12 41
Kuwait Kuwait 7 46
Laos Laos 45 16
Lebanon Lebanon 10 43
Liberia Liberia 24 30
Libya Libya 10 43
St. Lucia St. Lucia 2 51
Liechtenstein Liechtenstein 0 53
Sri Lanka Sri Lanka 30 27
Lesotho Lesotho 4 49
Lithuania Lithuania 2 51
Luxembourg Luxembourg 0 53
Latvia Latvia 1 52
Macao SAR China Macao SAR China 0 53
Saint Martin (French part) Saint Martin (French part) 2 51
Morocco Morocco 18 35
Monaco Monaco 3 50
Moldova Moldova 4 49
Madagascar Madagascar 121 2
Maldives Maldives 2 51
Mexico Mexico 96 3
Marshall Islands Marshall Islands 1 52
North Macedonia North Macedonia 6 47
Mali Mali 14 39
Malta Malta 2 51
Myanmar (Burma) Myanmar (Burma) 49 13
Montenegro Montenegro 6 47
Mongolia Mongolia 11 42
Northern Mariana Islands Northern Mariana Islands 3 50
Mozambique Mozambique 17 36
Mauritania Mauritania 18 35
Mauritius Mauritius 7 46
Malawi Malawi 10 43
Malaysia Malaysia 71 7
Namibia Namibia 15 38
New Caledonia New Caledonia 9 44
Niger Niger 13 40
Nigeria Nigeria 31 26
Nicaragua Nicaragua 7 46
Netherlands Netherlands 3 50
Norway Norway 8 45
Nepal Nepal 29 28
Nauru Nauru 2 51
New Zealand New Zealand 9 44
Oman Oman 10 43
Pakistan Pakistan 25 29
Panama Panama 17 36
Peru Peru 53 12
Philippines Philippines 38 20
Palau Palau 4 49
Papua New Guinea Papua New Guinea 41 17
Poland Poland 4 49
Puerto Rico Puerto Rico 2 51
North Korea North Korea 10 43
Portugal Portugal 13 40
Paraguay Paraguay 10 43
Palestinian Territories Palestinian Territories 4 49
French Polynesia French Polynesia 0 53
Qatar Qatar 4 49
Romania Romania 9 44
Russia Russia 34 23
Rwanda Rwanda 24 30
Saudi Arabia Saudi Arabia 11 42
Sudan Sudan 16 37
Senegal Senegal 19 34
Singapore Singapore 14 39
Solomon Islands Solomon Islands 19 34
Sierra Leone Sierra Leone 22 32
El Salvador El Salvador 6 47
San Marino San Marino 0 53
Somalia Somalia 16 37
Serbia Serbia 6 47
South Sudan South Sudan 14 39
São Tomé & Príncipe São Tomé & Príncipe 4 49
Suriname Suriname 9 44
Slovakia Slovakia 4 49
Slovenia Slovenia 6 47
Sweden Sweden 1 52
Eswatini Eswatini 9 44
Sint Maarten Sint Maarten 2 51
Seychelles Seychelles 6 47
Syria Syria 14 39
Turks & Caicos Islands Turks & Caicos Islands 2 51
Chad Chad 16 37
Togo Togo 13 40
Thailand Thailand 59 9
Tajikistan Tajikistan 7 46
Turkmenistan Turkmenistan 10 43
Timor-Leste Timor-Leste 5 48
Tonga Tonga 2 51
Trinidad & Tobago Trinidad & Tobago 2 51
Tunisia Tunisia 14 39
Turkey Turkey 19 34
Tuvalu Tuvalu 2 51
Tanzania Tanzania 41 17
Uganda Uganda 31 26
Ukraine Ukraine 11 42
Uruguay Uruguay 10 43
United States United States 40 18
Uzbekistan Uzbekistan 10 43
St. Vincent & Grenadines St. Vincent & Grenadines 2 51
Venezuela Venezuela 35 22
British Virgin Islands British Virgin Islands 1 52
U.S. Virgin Islands U.S. Virgin Islands 1 52
Vietnam Vietnam 56 11
Vanuatu Vanuatu 8 45
Samoa Samoa 2 51
Yemen Yemen 11 42
South Africa South Africa 30 27
Zambia Zambia 13 40
Zimbabwe Zimbabwe 10 43

The indicator of threatened mammal species serves as a vital measure of biodiversity and ecosystem health. It reflects the number of mammal species at risk of extinction, offering a snapshot of the ecological challenges faced by various regions around the world. Understanding this indicator is crucial not only for conservation efforts but also for promoting a balanced relationship between human activities and wildlife protection.

The importance of tracking threatened mammal species cannot be overstated. Mammals play integral roles in ecosystems, including pollination, seed dispersal, nutrient cycling, and predator-prey dynamics. When mammal species teeter on the brink of extinction, entire ecosystems can become unbalanced, leading to cascading effects on other species—be they flora or fauna. A decline in mammal populations can signify broader environmental issues, including habitat destruction, climate change, and pollution. Thus, the status of mammal species serves as an indicator of the overall health of biodiversity and the effectiveness of conservation strategies.

This indicator is closely related to several other biodiversity metrics, such as the number of threatened bird species, amphibians, and plants. Trends seen in the mammal population can mirror those in other taxonomic groups, allowing scientists and policymakers to assess the overall direction of biodiversity loss. For instance, if mammal species are being threatened due to habitat loss, it is likely that other species relying on the same ecosystem face similar perils. Monitoring these relationships also aids in prioritizing conservation efforts across taxonomic groups, as many environmental and anthropogenic factors—like deforestation or climate change—impact a variety of organisms simultaneously.

Several factors contribute to the decline of mammal species, including habitat destruction, climate change, poaching, and the introduction of invasive species. Habitat destruction, primarily through deforestation and urbanization, leads to the fragmentation and loss of natural habitats, making it difficult for mammals to find food, reproduce, and maintain healthy populations. Climate change brings about altering weather patterns, impacting breeding cycles, migration routes, and the availability of resources. Furthermore, poaching for bushmeat or illegal wildlife trade can reduce population numbers exponentially, while invasive species can outcompete native mammals for resources.

Strategies to combat the declining trend in threatened mammal species must be multifaceted and comprehensive. Conservation planning needs to prioritize the protection of critical habitats through the establishment of wildlife reserves and national parks. Creating corridors that connect isolated populations can facilitate gene flow and increase resilience against environmental changes. Additionally, implementing anti-poaching initiatives, investing in community-based conservation programs, and raising awareness through education can build local stewardship of wildlife. Engaging various stakeholders—from government entities and NGOs to local communities—ensures a holistic approach to managing and protecting mammalian diversity.

Solutions also involve national and international cooperation. The Convention on International Trade in Endangered Species of Wild Fauna and Flora (CITES) and the Convention on Biological Diversity (CBD) play pivotal roles in fostering cooperation between countries to ensure that conservation policies are not only developed but effectively implemented. Coordinated efforts can also enhance research on threatened species, track population trends, and inform best practices in conservation management.

Despite these strategies, flaws exist in effectively addressing the threats to mammal species. Limited funding often hampers conservation efforts, and gaps in data can lead to misinformed priorities or ineffective policies. Moreover, political instability or lack of governance in certain regions may obstruct conservation initiatives. The issue of balancing economic development with wildlife protection often leads to conflicts of interest, where short-term economic gains overshadow long-term ecological sustainability.

As of the latest year on record, 2018, the median value of threatened mammal species reached 10.0, highlighting varying degrees of risk across different regions. The top five areas severely affected by this trend were Indonesia, Madagascar, Mexico, India, and Brazil, with threatening figures pointing to the urgent need for targeted conservation in these biodiversity hotspots. Indonesia, with a staggering 191.0 threatened species, underscores the extreme challenges posed by habitat destruction, primarily driven by deforestation for palm oil plantations and logging. Madagascar's unique biodiversity is also under pressure, as its endemic species face habitat loss and environmental threats. Mexico and Brazil, both rich in mammalian diversity, confront similar issues exacerbated by urban expansion and agricultural practices.

Conversely, areas such as French Polynesia, the Isle of Man, Liechtenstein, Luxembourg, and Macao SAR China reported a zero count for threatened mammal species. While this might seem positive on the surface, it mirrors a lack of sufficient mammalian diversity to begin with. These regions may have limited species richness overall, which, while maintaining a status quo, could lead to vulnerabilities if climate change or other factors start to impact their ecosystems.

Reflecting on global values, a total of 3,434 reported threatened mammal species in 2017 indicates an urgent need for conservation focused on these captive species within the various ecosystems. Continuous monitoring, policy adjustments, and innovative conservation solutions are essential to mitigate the threats faced by these mammals. Through collective actions and an increasingly conscientious global community, we can work towards a future where mammal species—and, by proxy, our ecosystems—thrive.

                    
# Install missing packages
import sys
import subprocess

def install(package):
subprocess.check_call([sys.executable, "-m", "pip", "install", package])

# Required packages
for package in ['wbdata', 'country_converter']:
try:
__import__(package)
except ImportError:
install(package)

# Import libraries
import wbdata
import country_converter as coco
from datetime import datetime

# Define World Bank indicator code
dataset_code = 'EN.MAM.THRD.NO'

# Download data from World Bank API
data = wbdata.get_dataframe({dataset_code: 'value'},
date=(datetime(1960, 1, 1), datetime.today()),
parse_dates=True,
keep_levels=True).reset_index()

# Extract year
data['year'] = data['date'].dt.year

# Convert country names to ISO codes using country_converter
cc = coco.CountryConverter()
data['iso2c'] = cc.convert(names=data['country'], to='ISO2', not_found=None)
data['iso3c'] = cc.convert(names=data['country'], to='ISO3', not_found=None)

# Filter out rows where ISO codes could not be matched — likely not real countries
data = data[data['iso2c'].notna() & data['iso3c'].notna()]

# Sort for calculation
data = data.sort_values(['iso3c', 'year'])

# Calculate YoY absolute and percent change
data['value_change'] = data.groupby('iso3c')['value'].diff()
data['value_change_percent'] = data.groupby('iso3c')['value'].pct_change() * 100

# Calculate ranks (higher GDP per capita = better rank)
data['rank'] = data.groupby('year')['value'].rank(ascending=False, method='dense')

# Calculate rank change from previous year
data['rank_change'] = data.groupby('iso3c')['rank'].diff()

# Select desired columns
final_df = data[['country', 'iso2c', 'iso3c', 'year', 'value',
'value_change', 'value_change_percent', 'rank', 'rank_change']].copy()

# Optional: Add labels as metadata (could be useful for export or UI)
column_labels = {
'country': 'Country name',
'iso2c': 'ISO 2-letter country code',
'iso3c': 'ISO 3-letter country code',
'year': 'Year',
'value': 'GDP per capita (current US$)',
'value_change': 'Year-over-Year change in value',
'value_change_percent': 'Year-over-Year percent change in value',
'rank': 'Country rank by GDP per capita (higher = richer)',
'rank_change': 'Change in rank from previous year'
}

# Display first few rows
print(final_df.head(10))

# Optional: Save to CSV
#final_df.to_csv("gdp_per_capita_cleaned.csv", index=False)
                    
                
                    
# Check and install required packages
required_packages <- c("WDI", "countrycode", "dplyr")

for (pkg in required_packages) {
  if (!requireNamespace(pkg, quietly = TRUE)) {
    install.packages(pkg)
  }
}

# Load the necessary libraries
library(WDI)
library(dplyr)
library(countrycode)

# Define the dataset code (World Bank indicator code)
dataset_code <- 'EN.MAM.THRD.NO'

# Download data using WDI package
dat <- WDI(indicator = dataset_code)

# Filter only countries using 'is_country' from countrycode
# This uses iso2c to identify whether the entry is a recognized country
dat <- dat %>%
  filter(countrycode(iso2c, origin = 'iso2c', destination = 'country.name', warn = FALSE) %in%
           countrycode::codelist$country.name.en)

# Ensure dataset is ordered by country and year
dat <- dat %>%
  arrange(iso3c, year)

# Rename the dataset_code column to "value" for easier manipulation
dat <- dat %>%
  rename(value = !!dataset_code)

# Calculate year-over-year (YoY) change and percentage change
dat <- dat %>%
  group_by(iso3c) %>%
  mutate(
    value_change = value - lag(value),                              # Absolute change from previous year
    value_change_percent = 100 * (value - lag(value)) / lag(value) # Percent change from previous year
  ) %>%
  ungroup()

# Calculate rank by year (higher value => higher rank)
dat <- dat %>%
  group_by(year) %>%
  mutate(rank = dense_rank(desc(value))) %>% # Rank countries by descending value
  ungroup()

# Calculate rank change (positive = moved up, negative = moved down)
dat <- dat %>%
  group_by(iso3c) %>%
  mutate(rank_change = rank - lag(rank)) %>% # Change in rank compared to previous year
  ungroup()

# Select and reorder final columns
final_data <- dat %>%
  select(
    country,
    iso2c,
    iso3c,
    year,
    value,
    value_change,
    value_change_percent,
    rank,
    rank_change
  )

# Add labels (variable descriptions)
attr(final_data$country, "label") <- "Country name"
attr(final_data$iso2c, "label") <- "ISO 2-letter country code"
attr(final_data$iso3c, "label") <- "ISO 3-letter country code"
attr(final_data$year, "label") <- "Year"
attr(final_data$value, "label") <- "GDP per capita (current US$)"
attr(final_data$value_change, "label") <- "Year-over-Year change in value"
attr(final_data$value_change_percent, "label") <- "Year-over-Year percent change in value"
attr(final_data$rank, "label") <- "Country rank by GDP per capita (higher = richer)"
attr(final_data$rank_change, "label") <- "Change in rank from previous year"

# Print the first few rows of the final dataset
print(head(final_data, 10))