加入浮動文字
Deshaun 警官正在檢視他過去 6 個月的工時。6 月的數字偏低,因為他只有第一週的資料。請幫 Deshaun 在圖表上加入註解來說明這點。
本練習屬於課程
Python 的資料科學入門
練習說明
- 將註解「Missing June data」放在座標(
2.5,80)。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Create plot
plt.plot(six_months.month, six_months.hours_worked)
# Add annotation "Missing June data" at (2.5, 80)
____.____(____)
# Display graph
plt.show()