首页 > 解决方案 > AttributeError:模块“熊猫”没有属性“面板”

问题描述

我正在做一个时间序列项目,并想使用 statsmodels 包。但是我无法导入它。当我运行这个:import statsmodels.api as sm

我收到此错误:AttributeError: module 'pandas' has no attribute 'Panel'

我在另一个主题中看到该面板已从 Pandas 模块 0.25.0 开始删除。有没有办法我仍然可以使用 Pandas 1.2.3 版中的 statsmodels 包?

谢谢

标签: pythonpandaspanelstatsmodelsattributeerror

解决方案


推荐阅读