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

Connected

Exercise

Time series decomposition of the airline dataset

In this exercise, you will apply time series decomposition to the airline dataset, and visualize the trend and seasonal components.

Instructions 1/2

undefined XP
    1
    2
  • Import statsmodels.api using the alias sm.
  • Perform time series decomposition on the airline DataFrame into a variable called decomposition.
  • Extract the trend and seasonal components.