Compare the species column with "Gentoo", then pass that mask to .loc. The new column is body mass in kilograms.
Data analysis labpractice
Filter Gentoo penguins
Keep one species and one new column, using the table from the cell above.
Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.
Palmer penguins
penguins.csv · CC0
344 penguins from Palmer Station, with bill and flipper measurements and a few missing values.
Loading the first rows…
1
Load the table
2
Gentoo mass in kilograms
3