НачатьНачать бесплатно

Practicing decomposition

Decomposition will be an essential part of your toolbox when working with time series.

In this exercise, you will practice seasonal decomposition. The apple stocks dataset has already been loaded for you, along with matplotlib as plt.

Это упражнение является частью курса

Anomaly Detection in Python

Посмотреть курс

Интерактивное практическое упражнение

Попробуйте выполнить это упражнение, дополнив этот пример кода.

from statsmodels.tsa.seasonal import seasonal_decompose

# Create a DecomposeResult object and plot seasonality
results = ____(____, ____)
results.____.plot(____, ____)

plt.show()
Редактировать и запускать код