繪製折線圖

Python 的資料科學入門

Hillary Green-Lerman

Lead Data Scientist, Looker

情節更趨複雜

Python 的資料科學入門

從 DataFrame 到視覺化

Python 的資料科學入門

認識 Matplotlib

from matplotlib import pyplot as plt
plt.plot(x_values, y_values)

plt.show()

Python 的資料科學入門

折線圖

Python 的資料科學入門

顯示結果

plt.show()

使用 plt.show() 函式顯示圖表

Python 的資料科學入門

多條折線

plt.plot(data1.x_values,
         data1.y_values)
plt.plot(data2.x_values,
         data2.y_values)
plt.show()

Python 的資料科學入門

一起來練習吧!

Python 的資料科學入門

Preparing Video For Download...