Get startedGet started for free

Working hard

Several police officers have been working hard to help us solve the mystery of Bayes, the kidnapped Golden Retriever. Their commanding officer wants to know exactly how hard each officer has been working on this case. Officer Deshaun has created DataFrames called deshaun to track the amount of time he spent working on this case. The DataFrame contains two columns:

  • day_of_week: a string representing the day of the week
  • hours_worked: the number of hours that a particular officer worked on the Bayes case'

This exercise is part of the course

Introduction to Data Science in Python

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# From matplotlib, import pyplot under the alias plt
from ____ import ____ as ____
Edit and Run Code