【发布时间】:2020-09-12 17:38:19
【问题描述】:
我的代码
!pip install stldecompose
from stldecompose import decompose
错误消息
ImportError Traceback(最近一次调用最后一次) 在 2 # 通过 PIP 安装库 3 get_ipython().system('pip install stldecompose') ----> 4 from stldecompose 导入分解,预测
~/opt/anaconda3/lib/python3.7/site-packages/stldecompose/init.py ----> 1 from .stl import 分解,预测
~/opt/anaconda3/lib/python3.7/site-packages/stldecompose/stl.py 3 从 pandas.core.nanops 导入 nanmean 作为 pd_nanmean 4 从 statsmodels.tsa.seasonal 导入 DecomposeResult ----> 5 来自 statsmodels.tsa.filters._utils 导入 _maybe_get_pandas_wrapper_freq 6 将 statsmodels.api 导入为 sm 7
ImportError: cannot import name '_maybe_get_pandas_wrapper_freq' from 'statsmodels.tsa.filters._utils' (/Users/georgeng/opt/anaconda3/lib/python3.7/site-packages/statsmodels/tsa/filters/_utils.py )
【问题讨论】:
标签: python statsmodels