開始使用免費開始

視覺化兩個數值變數

在執行任何統計模型之前,先把資料集視覺化通常是個好主意。這裡你要用臺灣不動產資料集,觀察每坪單價與附近便利商店數量之間的關係。

此資料集的一個挑戰是便利商店數量是整數型資料,點會重疊。為了解決這個問題,你會把點設為透明。

taiwan_real_estatepandas 的 DataFrame 形式提供。

本練習屬於課程

使用 Python 中的 statsmodels 進行回歸入門

檢視課程

動手互動練習

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

# Import seaborn with alias sns
____

# Import matplotlib.pyplot with alias plt
____

# Draw the scatter plot
sns.____(____)

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