Or hardly working?
Two other officers have been working with Deshaun to help find Bayes. Their names are Officer Mengfei and Officer Aditya. Deshaun used their time cards to create two more DataFrames: mengfei
and aditya
. In this exercise, we'll plot all three lines together to see who was working hard each day.
We've already loaded matplotlib
under the alias plt
.
This exercise is part of the course
Introduction to Data Science in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Plot Officer Deshaun's hours_worked vs. day_of_week
plt.plot(deshaun.day_of_week, deshaun.hours_worked)
# Plot Officer Aditya's hours_worked vs. day_of_week
____(____, ____)
# Plot Officer Mengfei's hours_worked vs. day_of_week
____
# Display all three line plots
plt.show()