Catalog / Tabular
Palmer Penguins (2020)
344 penguins from three Antarctic islands, with bill, flipper and body-mass measurements.
Why it matters
Released as an R package to replace Iris in teaching. It is just as small, but with real-world mess: missing values, categorical columns (island, sex) and unequal classes. It also has no tie to Iris's eugenics history. It shows Simpson's paradox: across all penguins, longer bills go with shallower bills, but within each species the relation is positive. Plot it and the species separate cleanly.
Get the data
# pip install -U huggingface_hub
hf download SIH/palmer-penguins --repo-type dataset \
--local-dir palmer-penguinsfrom datasets import load_dataset # pip install datasets
ds = load_dataset("SIH/palmer-penguins")
print(ds)import polars as pl
df = pl.read_parquet("hf://datasets/SIH/palmer-penguins@~parquet/default/train/*.parquet")
print(df.shape)- Year
- 2020
- Creators
- Allison Horst, Alison Hill, Kristen Gorman (data from Palmer Station LTER)
- Task
- Multiclass classification (penguin species)
- Size
- 344 rows × 8 columns
- Splits
- all 344
- Input
- Island, bill length and depth (mm), flipper length (mm), body mass (g), sex, year
- Labels
- Adélie (152), Gentoo (124), Chinstrap (68)
- License
- CC0 1.0
- Paper
- Ecological Sexual Dimorphism and Environmental Variability within a Community of Antarctic Penguins (Genus Pygoscelis)
Samples
| species | island | bill_length_mm | bill_depth_mm | flipper_length_mm | body_mass_g | sex | year |
|---|---|---|---|---|---|---|---|
| Gentoo | Biscoe | 45.5 | 14.5 | 212 | 4750 | female | 2009 |
| Gentoo | Biscoe | 46.8 | 16.1 | 215 | 5500 | male | 2009 |
| Chinstrap | Dream | 54.2 | 20.8 | 201 | 4300 | male | 2008 |
| Adelie | Biscoe | 41.6 | 18 | 192 | 3950 | male | 2008 |
| Adelie | Biscoe | 37.8 | 20 | 190 | 4250 | male | 2009 |
| Chinstrap | Dream | 46.8 | 16.5 | 189 | 3650 | female | 2009 |
| Chinstrap | Dream | 51.3 | 19.2 | 193 | 3650 | male | 2007 |
| Adelie | Biscoe | 37.7 | 18.7 | 180 | 3600 | male | 2007 |
| Gentoo | Biscoe | 50.7 | 15 | 223 | 5550 | male | 2008 |
| Adelie | Biscoe | 40.5 | 18.9 | 180 | 3950 | male | 2007 |
| Chinstrap | Dream | 45.5 | 17 | 196 | 3500 | female | 2008 |
| Adelie | Biscoe | 39.7 | 18.9 | 184 | 3550 | male | 2009 |
∅ = missing value
What one record actually looks like (raw JSON, row 244)
{
"bill_depth_mm": 14.5,
"bill_length_mm": 45.5,
"body_mass_g": 4750,
"flipper_length_mm": 212,
"island": "Biscoe",
"sex": "female",
"species": "Gentoo",
"year": 2009
}Media fields point at a local copy; on Hugging Face they are bytes in a Parquet file.
Sampled 2026-11-07 from SIH/palmer-penguins at revision e13dbb8
The whole dataset at once
Worth knowing
- The measurements were taken from 2007 to 2009 by Dr. Kristen Gorman at Palmer Station, Antarctica.
- Two penguins have no measurements at all and 11 have no recorded sex, so imputation or dropping rows is part of the exercise.
- Gentoo penguins are much heavier (about 5 kg on average) than Adélie and Chinstrap (about 3.7 kg).
- The package's penguin illustrations by Allison Horst helped it spread quickly in data-science courses.
Related datasets
- Iris: 1936, the dataset it replaces in teachingHugging Face ↗Iris on this site →