模块 'pandas' 没有属性 'Panel'
module 'pandas' has no attribute 'Panel'
我在将字典数据帧转换为面板数据帧时遇到错误
panelda = pd.Panel()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-33-e8e84d2172b7> in <module>
11 panaldata[ticker] = panaldata[ticker][["Open","High","Low","Close","Volume"]]
12 #print(panaldata[ticker].head())
---> 13 panelda = pd.Panel()
14 #panelda.minor_axis = ["Open","High","Low","Close","Volume"]
15 #panelda.major_axis = panel.major_axis.tz_localize(pytz.ist)
c:\miniconda\lib\site-packages\pandas\__init__.py in __getattr__(name)
242 return _SparseArray
243
--> 244 raise AttributeError(f"module 'pandas' has no attribute '{name}'")
245
246
AttributeError: module 'pandas' has no attribute 'Panel'
我在将字典数据帧转换为面板数据帧时遇到错误
panelda = pd.Panel()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-33-e8e84d2172b7> in <module>
11 panaldata[ticker] = panaldata[ticker][["Open","High","Low","Close","Volume"]]
12 #print(panaldata[ticker].head())
---> 13 panelda = pd.Panel()
14 #panelda.minor_axis = ["Open","High","Low","Close","Volume"]
15 #panelda.major_axis = panel.major_axis.tz_localize(pytz.ist)
c:\miniconda\lib\site-packages\pandas\__init__.py in __getattr__(name)
242 return _SparseArray
243
--> 244 raise AttributeError(f"module 'pandas' has no attribute '{name}'")
245
246
AttributeError: module 'pandas' has no attribute 'Panel'