datreant / datreant.data

convenient data storage and retrieval in HDF5 for Treants
http://datreant.org/
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

AttributeError: module 'pandas' has no attribute 'Panel4D' #24

Open lee212 opened 5 years ago

lee212 commented 5 years ago
>>> segs_s2if['restrained_to_repulsion'][0].data['dHdl'] = get_dHdl_XVG(segs_s2if['restrained_to_repulsion'][0], lower=5000,step=200)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/hrlee/.conda/envs/alchemlyb/lib/python3.7/site-packages/datreant/data/limbs.py", line 186, in __setitem__
    self.add(handle, data)
  File "/home/hrlee/.conda/envs/alchemlyb/lib/python3.7/site-packages/datreant/data/limbs.py", line 139, in inner
    out = func(self, handle, *args, **kwargs)
  File "/home/hrlee/.conda/envs/alchemlyb/lib/python3.7/site-packages/datreant/data/limbs.py", line 218, in add
    self._datafile.add_data('main', data)
  File "/home/hrlee/.conda/envs/alchemlyb/lib/python3.7/site-packages/datreant/data/core.py", line 59, in add_data
    elif isinstance(data, (pd.Series, pd.DataFrame, pd.Panel, pd.Panel4D)):
AttributeError: module 'pandas' has no attribute 'Panel4D'

My panda is 0.24.1 and it seems Panel4D has been removed according to this: http://pandas.pydata.org/pandas-docs/stable/whatsnew/v0.23.0.html