Locked lesson.
About this lesson
In this video, we discuss how to create your own box plots.
Exercise files
Download this lesson’s related exercise files.
Plotting Box Plots.docx57 KB Plotting Box Plots - Solution.docx
55.6 KB
Quick reference
Plotting Box Plots
Box plots can be created using the same two methods we've discussed earlier.
When to use
Use either of these methods to create a box plot.
Instructions
The first method to create a box plot is:
my_df.plot(kind="box")
To add grid lines to your box plot:
my_df.plot(kind="box", grid=True)
The second method to create a box plot:
my_df.plot.box()
The line in the middle of a box plot designates the Median. The box plot represents your data's quartiles.
Hints & tips
- my_df.plot(kind="box", grid=True)
- my_df.plot.box()
Lesson notes are only available for subscribers.