Session Ready
Exercise

Getting started with plotnine

Let's do some exploratory data analysis! In this exercise, you have been provided with a People dataset containing the Height in cm and Weight in kg of two Sample groups.

We'll start by creating a simple scatter plot, allowing you to see how these variables relate to one another. You'll need to import the plotnine package, then you'll make your first plot.

Instructions
100 XP
  • Import the plotnine package, aliased as p9.
  • Using ggplot(), create and print a scatter plot of the People DataFrame, using geom_point(), with Height, Weight and Sample assigned to x, y, and color, respectively.