Registry / analytics / palmerpenguins

palmerpenguins

JSON →
library0.1.6pypypi✓ verified 88d ago

A Python package providing the Palmer Archipelago (Antarctica) penguin dataset, commonly used for data exploration and visualization. It includes measurements of Adelie, Chinstrap, and Gentoo penguins. Current version is 0.1.6; maintenance is irregular.

pip install palmerpenguins
INSTALL
IMPORT
SIG · PALMERPENGUINS
P
palmerpenguins
analyticspythonv0.1.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

load_penguins
✓ from palmerpenguins import load_penguins
✗ import palmerpenguins; palmerpenguins.load()
There is no `load()` function; the correct import is `load_penguins`.

Loads the penguins dataset as a pandas DataFrame.

from palmerpenguins import load_penguins df = load_penguins() print(df.head())
Debug
Known issues
gotchaThe dataset may contain missing values (NaN) in certain rows, especially for sex. Users must handle NaNs before analysis.
fix
Use df.dropna() or fill missing values appropriately.
affects: all
gotchaThe function `load_penguins()` caches the data after the first call; subsequent calls return the same in-memory DataFrame. Modifications to the returned DataFrame will affect subsequent calls.
fix
Always copy the DataFrame if you intend to modify it: df = load_penguins().copy()
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'palmerpenguins'
Package not installed.
fix
Run `pip install palmerpenguins`
AttributeError: module 'palmerpenguins' has no attribute 'load_penguins'
Incorrect import pattern; trying `import palmerpenguins` and then `palmerpenguins.load_penguins` should work, but typical mistake is using `load()` instead.
fix
Use `from palmerpenguins import load_penguins`
Upgrade
Version history
0.1.6latest on PyPI · released Feb 1, 2026
Audit
Dependencies
pandasrequiredRequired to load data as DataFrame
Agent activity
41 hits · last 30 days
node
38
Amazon
1
OpenAI (training)
1
Resources
palmerpenguins — pip install palmerpenguins · libregistry