開始使用免費開始

長條圖(Histogram)

了解資料長什麼樣子很重要,資料的分佈同樣關鍵。

你可以為環境資料集繪製長條圖(histogram)來觀察分佈。

pandas 已匯入為 pdmatplotlib.pyplot 已匯入為 plt

本練習屬於課程

使用 Python 分析 IoT 資料

檢視課程

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

cols = ["temperature", "humidity", "pressure", "radiation"]

# Create a histogram
df[cols].____(____)

# Label Y-Axis
plt.____(____)

# Show plot
plt.show()
編輯並執行程式碼