開始使用免費開始

辨識離群值

你已經證明自己知道在遇到離群值時該怎麼做,但你能用視覺化把它們找出來嗎?

試著判斷在 planes DataFrame 的 "Price""Duration" 欄位中是否存在離群值。

matplotlib.pyplotseaborn 已分別以 pltsns 匯入供你使用。

本練習屬於課程

Python 的探索性資料分析

檢視課程

動手互動練習

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

# Plot a histogram of flight prices
sns.histplot(data=____, x=____)
plt.show()
編輯並執行程式碼