【发布时间】:2020-09-23 09:59:41
【问题描述】:
我正在尝试在我的 python 3.x 中进行预测。所以我写了以下代码
from statsmodels.tsa.seasonal import seasonal_decompose
decomposition = seasonal_decompose(ts_log)
trend = decomposition.trend
seasonal = decomposition.seasonal
residual = decomposition.resid
但我收到错误消息
AttributeError: 'RangeIndex' object has no attribute 'inferred_freq'
你能帮我解决这个问题吗
【问题讨论】: