比較直方圖與 displot
pandas 函式庫支援簡單的繪圖功能,當資料已經位於 pandas 的 DataFrame 中時特別方便。
Seaborn 通常會對資料做更多統計分析,能提供更進一步的洞見。這個練習中,你會比較 pandas 的直方圖與 seaborn 的 displot。
本練習屬於課程
Seaborn 資料視覺化中級
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Display pandas histogram
df['Award_Amount'].plot.____()
plt.show()
# Clear out the pandas histogram
plt.clf()