Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是代码,上面提到的是我得到如何解决它的错误,而 sarima_forecast 是一个系列。
Sarima_df = pd.DataFrame(sarima_forecast[0], columns = df.columns)
尝试使用to_frame:
to_frame
Sarima_df = sarima_forecast.to_frame(df.columns[0])