Session Ready
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 componenets.

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.