ValueError: DataFrame constructor not properly called for sarima

ValueError: DataFrame constructor not properly called for sarima

这是代码,上面提到的是我正在解决的错误,sarima_forecast 是一个系列。

Sarima_df = pd.DataFrame(sarima_forecast[0], columns = df.columns)

尝试使用 to_frame:

Sarima_df = sarima_forecast.to_frame(df.columns[0])