Git Product home page Git Product logo

penguins's Introduction

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>

png

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

penguins's People

Contributors

johnmount avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.