The Palmer Penguins Dataset

Throughout the rest of this course we will use the Palmer Penguins dataset, collected by Dr. Kristen Gorman at Palmer Station, Antarctica.

Gorman KB, Williams TD, Fraser WR (2014) Ecological Sexual Dimorphism and Environmental Variability within a Community of Antarctic Penguins (Genus Pygoscelis). PLoS ONE 9(3): e90081. doi:10.1371/journal.pone.0090081

It contains measurements for 344 penguins belonging to three species:

Artwork by @allison_horst

The features available are:

Feature Type Description
bill_length_mm Numeric Length of the bill in millimetres
bill_depth_mm Numeric Depth (height) of the bill in millimetres
flipper_length_mm Numeric Flipper length in millimetres
body_mass_g Numeric Body mass in grams
island Categorical Biscoe, Dream, or Torgersen
sex Categorical Male or Female


We can load the dataset directly from the Python seaborn library.

# Load libraries
import seaborn as sns

# Load the dataset
penguins = sns.load_dataset("penguins")

# Show the first few rows
penguins.head()
species island bill_length_mm bill_depth_mm flipper_length_mm body_mass_g sex
0 Adelie Torgersen 39.1 18.7 181.0 3750.0 Male
1 Adelie Torgersen 39.5 17.4 186.0 3800.0 Female
2 Adelie Torgersen 40.3 18.0 195.0 3250.0 Female
3 Adelie Torgersen NaN NaN NaN NaN NaN
4 Adelie Torgersen 36.7 19.3 193.0 3450.0 Female