Creating line plots

Introduction to Data Science in Python

Hillary Green-Lerman

Lead Data Scientist, Looker

The plot thickens

Introduction to Data Science in Python

From DataFrame to Visualization

Introduction to Data Science in Python

Introducing Matplotlib

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

plt.show()

Introduction to Data Science in Python

Line Plot

Introduction to Data Science in Python

Displaying the Results

plt.show()

Displaying a plot using the plt.show() function

Introduction to Data Science in Python

Multiple Lines

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

Introduction to Data Science in Python

Let's practice!

Introduction to Data Science in Python

Preparing Video For Download...