Where did the time go?
Officer Deshaun wants to compare the hours spent on field work and desk work between him and his colleagues. In this DataFrame, he has split out the average hours worked per week into desk_work
and field_work
.
You can use the same DataFrame containing the hours worked from the previous exercise (hours
).
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 the number of hours spent on desk work
____
# Display the plot
plt.show()