CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Visualizing Time Series Data in Python

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Import statsmodels.api as sm
____

# Perform time series decompositon
decomposition = sm.tsa.____(____)

# Extract the trend and seasonal components
trend = ____
seasonal = ____
Modifier et exécuter le code