1. 学ぶ
  2. /
  3. コース
  4. /
  5. Visualizing Time Series Data in Python

Connected

演習

Plot individual components

It is also possible to extract other inferred quantities from your time-series decomposition object. The following code shows you how to extract the observed, trend and noise (or residual, resid) components.

observed = decomposition.observed
trend = decomposition.trend
residuals = decomposition.resid

You can then use the extracted components and plot them individually.

The decomposition object you created in the last exercise is available in your workspace.

指示

100 XP
  • Extract the trend component from the decomposition object.
  • Plot this trend component.