single
Challenge: Apply Decomposition
Desliza para mostrar el menú
In this chapter, you will apply your understanding of rolling statistics and time series decomposition to a new dataset. You will use Python's pandas and matplotlib libraries to calculate a rolling mean, visualize seasonality using a heatmap, and decompose the dataset into its trend, seasonal, and residual components. By analyzing the resulting plots and components, you will deepen your ability to interpret the structure of time series data and extract meaningful insights.
Swipe to start coding
Practice applying rolling statistics, heatmap visualization, and decomposition to a time series dataset using pandas, matplotlib, and statsmodels.
- Compute the centered rolling mean for the column specified by
value_colusing the providedwindow_size. - Create a seasonal heatmap data structure showing seasonality, with
monthas the index (rows) andyearas the columns. - Decompose the specified value column into trend, seasonality, and residuals using the
seasonal_decomposefunction with anadditivemodel.
Solución
¡Gracias por tus comentarios!
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla