You did a great job! Let’s introduce one more plot type: bar plots. Again, we’re not going to delve into the details, because bar plots are constructed in the same way as other plot types. Take a look:
birthdays = pd.read_csv('employee_birth.csv')
figure = plt.figure(figsize=(10, 5))
bar_subplot = plt.subplot(111)
bar_subplot.set_title('Employee Birthday by Month')
bar_subplot.set_xlabel('number of employees')
plt.bar(birthdays['sequence'], birthdays['employees'], width=0.5)
plt.bar(...) to create a bar plot in our figure. We provided the following arguments:
birthdays['sequence'] for the x-axis (required),
birthdays['employees'] for the y-axis (required),
width=0.5, for the width of individual bars (optional).
As you can see, bar plots are not that difficult to create.