#

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.

Groupby

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:

  1. Your code should only be one line, and

  2. 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.
The Creative Commons 4.0 license requiring attribution-BY, non-commercial-NC, and share-alike-SA license.