繪製散佈圖

Python 的資料科學入門

Hillary Green-Lerman

Lead Data Scientist, Looker

繪製手機訊號地圖

Python 的資料科學入門

什麼是散佈圖?

Python 的資料科學入門

什麼是散佈圖?

Python 的資料科學入門

建立散佈圖

plt.scatter(df.age, df.height)
plt.xlabel('Age (in months)')
plt.ylabel('Height (in inches)')

plt.show()

Python 的資料科學入門

關鍵字引數

plt.scatter(df.age, df.height,
            color='green',
            marker='s')

Python 的資料科學入門

調整標記透明度

plt.scatter(df.x_data,
            df.y_data,
            alpha=0.1)

Python 的資料科學入門

一起來練習吧!

Python 的資料科學入門

Preparing Video For Download...