Code
import pandas as pd
import seaborn as sns
from IPython.display import Markdown
'whitegrid') sns.set_style(
October 23, 2023
Meet the Palmer Penguins!!
For this analysis we’ll use a few packages for visualization and data display.
The dataset we’ll use comes from the palmerpenguins package.
This dataset contains size measurements, clutch observations, and blood isotope ratios for 344 adult foraging Adélie, Chinstrap, and Gentoo penguins observed on islands in the Palmer Archipelago near Palmer Station, Antarctica.(Gorman, Williams, and Fraser 2014)
Let’s take a peek at the data. Table 1 shows the first five rows of the penguins
data frame.
species | island | bill_length_mm | bill_depth_mm | flipper_length_mm | body_mass_g | sex | year |
---|---|---|---|---|---|---|---|
Adelie | Torgersen | 39.1 | 18.7 | 181 | 3750 | male | 2007 |
Adelie | Torgersen | 39.5 | 17.4 | 186 | 3800 | female | 2007 |
Adelie | Torgersen | 40.3 | 18 | 195 | 3250 | female | 2007 |
Adelie | Torgersen | nan | nan | nan | nan | nan | 2007 |
Adelie | Torgersen | 36.7 | 19.3 | 193 | 3450 | female | 2007 |
Figure 1 shows the relationship between body mass and flipper length of penguins.