Membuat plot garis

Pengantar Data Science dengan Python

Hillary Green-Lerman

Lead Data Scientist, Looker

Plot makin menarik

Pengantar Data Science dengan Python

Dari DataFrame ke visualisasi

Pengantar Data Science dengan Python

Pengenalan Matplotlib

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

plt.show()

Pengantar Data Science dengan Python

Plot garis

Pengantar Data Science dengan Python

Menampilkan hasil

plt.show()

Menampilkan plot dengan fungsi plt.show()

Pengantar Data Science dengan Python

Beberapa garis

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

Pengantar Data Science dengan Python

Ayo berlatih!

Pengantar Data Science dengan Python

Preparing Video For Download...