Get startedGet started for free

Interpreting line plots

In this exercise, we'll continue to explore Seaborn's mpg dataset, which contains one row per car model and includes information such as the year the car was made, its fuel efficiency (measured in "miles per gallon" or "M.P.G"), and its country of origin (USA, Europe, or Japan).

How has the average miles per gallon achieved by these cars changed over time? Let's use line plots to find out!

This exercise is part of the course

Introduction to Data Visualization with Seaborn

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Import Matplotlib and Seaborn
import matplotlib.pyplot as plt
import seaborn as sns

# Create line plot



# Show plot
plt.show()
Edit and Run Code