# Palmer Penguins (2020)

> 344 penguins from three Antarctic islands, with bill, flipper and body-mass measurements.

Page: https://mralbu.github.io/ai-datasets/d/palmer-penguins

## Key facts

- Category: Tabular
- Task: Multiclass classification (penguin species)
- Creators: Allison Horst, Alison Hill, Kristen Gorman (data from Palmer Station LTER)
- 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)](https://doi.org/10.1371/journal.pone.0090081)
- Homepage: https://allisonhorst.github.io/palmerpenguins/
- Hugging Face: [SIH/palmer-penguins](https://huggingface.co/datasets/SIH/palmer-penguins)
- Sampled at Hub revision e13dbb8b1feeec1416b0a3d949e2fa38ab74975a (2026-11-07)

## 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.

## 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.

## Get the data

```bash
# pip install -U huggingface_hub
hf download SIH/palmer-penguins --repo-type dataset \
  --local-dir palmer-penguins
```

```python
from datasets import load_dataset   # pip install datasets

ds = load_dataset("SIH/palmer-penguins")
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/SIH/palmer-penguins@~parquet/default/train/*.parquet")
print(df.shape)
```

## Related datasets

- [Iris](https://huggingface.co/datasets/scikit-learn/iris): 1936, the dataset it replaces in teaching (on this site: https://mralbu.github.io/ai-datasets/d/iris)
