Session Ready
Exercise

Visualize the seasonality of multiple time series

You will now extract the seasonality component of jobs_decomp to visualize the seasonality in these time series. Note that before plotting, you will have to convert the dictionary of seasonality components into a DataFrame using the pd.DataFrame.from_dict() function.

An empty dictionary jobs_seasonal and the time series decompositon object jobs_decomp from the previous exercise are available in your workspace.

Instructions
100 XP
  • Iterate through each column name in jobs_names and extract the corresponding seasonal component from jobs_decomp. Place the results in the jobs_seasonal, where the column name is the name of the time series, and the value is the seasonal component of the time series.
  • Convert jobs_seasonal to a DataFrame and call it seasonality_df.
  • Create a facetted plot of all 16 columns in seasonality_df. Ensure that the subgraphs do not share y-axis.