外面開始變冷了,W20529
華盛頓特區整體氣候溫和,不過 10 月的平均高溫(68ºF/20ºC)確實比 12 月的平均高溫(47ºF/8ºC)高。12 月旅行的人也更多,工作天較少,因此通勤也比較少。
天氣或季節可能如何影響單車行程的時間長度?
本練習屬於課程
在 Python 處理日期與時間
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Import matplotlib
import matplotlib.pyplot as plt
# Resample rides to daily, take the size, plot the results
rides.resample(____, ____ = 'Start date')\
.____\
.plot(ylim = [0, 15])
# Show the results
plt.show()