Locked lesson.
About this lesson
In this video, we explain how to create bar plots using your data.
Exercise files
Download this lesson’s related exercise files.
Plotting Bar Plots.docx57.2 KB Plotting Bar Plots - Solution.docx
55.4 KB
Quick reference
Plotting Bar Plots
There are two main methods for creating bar plots.
When to use
Use either of these two methods when you need to create a bar plot.
Instructions
The first method for creating a bar plot:
my_df.plot(kind='bar')
To stack your bar plot:
my_df.plot(kind='bar', stacked=True)
The second method for creating a bar plot:
my_df.plot.bar()
Hints & tips
- my_df.plot(kind='bar')
- my_df.plot.bar()
Lesson notes are only available for subscribers.