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.
This exercise is part of the course
Visualizing Time Series Data in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Import statsmodels.api as sm
____
# Perform time series decompositon
decomposition = sm.tsa.____(____)
# Extract the trend and seasonal components
trend = ____
seasonal = ____