Question: Filter the data to include only Gentoo penguins I gentoo _ penguins = penguins [ penguins [ ' species ' ] = = Gentoo ]
Filter the data to include only Gentoo penguins I
gentoopenguins penguinspenguinsspecies "Gentoo"groupedbysex gentoopenguins.groupby'sexGentosexsummary groupedbysex.aggavebillengthbilllengthmm 'mean'printGentoosexsummaryGentoosexsummaryneat penguinspenguinsspecies "Gentoo"groupbysex aggavebillengthbilllengthmm 'mean'
printGentosexsummaryneat
Now, try to modify the above code to calculate the mean body mass bodymassg of all penguin species by island. After trying, check your
answer by viewing the solution. Hint: Do you need to filter by any species here? What about grouping by a different column?
We will often use Seaborn to visualize data, but again, I will generally give you the base code to modify.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
