CommencezCommencez gratuitement

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).

Cette activité fait partie du cours

Introduction to Data Science in Python

Voir le cours

Exercice interactif pratique

Essayez cet exercice en complétant ce code d’exemple.

# Plot the number of hours spent on desk work
____

# Display the plot
plt.show()
Modifier et exécuter le code