1. Learn
  2. /
  3. Courses
  4. /
  5. Visualizing Time Series Data in Python

Connected

Exercise

Visualize the airline dataset

You will now review the contents of chapter 1. You will have the opportunity to work with a new dataset that contains the monthly number of passengers who took a commercial flight between January 1949 and December 1960.

We have printed the first 5 and the last 5 rows of the airline DataFrame for you to review.

Instructions

100 XP
  • Plot the time series of airline using a "blue" line plot.
  • Add a vertical line on this plot at December 1, 1955.
  • Specify the x-axis label on your plot: 'Date'.
  • Specify the title of your plot: 'Number of Monthly Airline Passengers'.