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.
Deze oefening maakt deel uit van de cursus
Introduction to Data Science in Python
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
# 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()