Aan de slagGa gratis aan de slag

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'

Deze oefening maakt deel uit van de cursus

Introduction to Data Science in Python

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# From matplotlib, import pyplot under the alias plt
from ____ import ____ as ____
Code bewerken en uitvoeren