認真工作,還是幾乎沒在做?
另外兩位員警一直和 Deshaun 合作搜尋 Bayes。他們是 Mengfei 警員與 Aditya 警員。Deshaun 用他們的打卡資料建立了另外兩個 DataFrame:mengfei 和 aditya。在這個練習中,我們會把三條線一起畫出來,看看每天誰比較認真在上班。
我們已經以別名 plt 載入了 matplotlib。
本練習屬於課程
Python 的資料科學入門
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# 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()