https://github.com/allisonhorst/palmerpenguins Palmer Penguins example ported to Python.
import pandas
import seaborn
penguins = pandas.read_csv(
'https://raw.githubusercontent.com/JohnMount/Penguins/main/penguins.csv')
penguins_raw = pandas.read_csv(
'https://raw.githubusercontent.com/JohnMount/Penguins/main/penguins_raw.csv')
print(penguins.shape)
penguins.head()
(344, 7)
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 |
seaborn.scatterplot(
x="flipper_length_mm",
y="body_mass_g",
hue="species",
style="species", data=penguins)
<matplotlib.axes._subplots.AxesSubplot at 0x7fa953d22990>
Palmer Penguins data from:
https://github.com/allisonhorst/palmerpenguins
citation("palmerpenguins")
To cite palmerpenguins in publications use:
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. https://doi.org/10.1371/journal.pone.0090081
A BibTeX entry for LaTeX users is
@Article{, title = {Ecological Sexual Dimorphism and Environmental Variability within a Community of Antarctic Penguins (Genus Pygoscelis)}, author = {Gorman KB and Williams TD and Fraser WR}, journal = {PLoS ONE}, year = {2014}, volume = {9(3)}, number = {e90081}, pages = {-13}, url = {https://doi.org/10.1371/journal.pone.0090081}, }
Saved using R
:
# install.packages("remotes")
remotes::install_github("allisonhorst/palmerpenguins")
write.csv(penguins, 'penguins.csv', row.names = FALSE, quote = FALSE)
write.csv(penguins_raw, 'penguins_raw.csv', row.names = FALSE, quote = TRUE)
Exported so Python users can also use this data (original package doesn't seem to currently export a csv).
This page found here: https://github.com/JohnMount/Penguins
Python example here: https://github.com/JohnMount/Penguins/blob/main/Penguins.ipynb
R example here: https://github.com/JohnMount/Penguins/blob/main/Rexample.md