#
Question Text#
In this quiz we will be looking at exploring the penguins
dataset.
You can load the penguins
dataset in seaborn
using:
df = sns.load_dataset("penguins")
This dataset contains information about three species of penguins (Adelie, Gentoo, and Chinstrap), and various characteristics including their bill_length, bill_depth, flipper_length, body_mass, and sex.
Credit: Artwork by @allison_horst.
This question requires you to use the groupby()
method to produce the expected output.
With the penguins
DataFrame above assigned to the variable df
, what code would you use to return the DataFrame below? We are looking for the {{ params_vars_func }}
of the penguins
DataFrame grouped by and .
A few things to note:
Your code should only be one line, and
The output should have the columns in precisely the same order as shown in the table below.
Answer Section#
pl-submission-panel#
Attribution#
Problem is licensed under the CC-BY-NC-SA 4.0 license.