Session Ready
Exercise

Boxplots

Now we'll try creating boxplots, which are a great way to get an overview of a distribution. We'll be using the same People dataset containing the Weight in kg and the Height in cm from two Samples.

You'll make two boxplots: one for Weight and one for Height. Both plotnine and pandas have been imported as p9 and pd.

Instructions 1/2
undefined XP
  • 1

    Using the People dataset, print a boxplot (geom_boxplot()) of Weight by Sample, and assign fill color to Sample.

    • 2

      Print a boxplot of the Height of each Sample in People, and fill color by Sample.