0

I am having trouble reading an HDF5 file in python. If I am using this code:

import pandas as pd
data = pd.read_hdf('pepper_experiments.h5','handover')

I get the following error:

TypeError: cannot create a storer if the object is not existing nor a value are passed

The h5 file looks like this

Does anyone have an idea why it is not working?

Dana Robinson
  • 4,304
  • 8
  • 33
  • 41
Flix17
  • 65
  • 6
  • 1
    You can probably refer to this answer, the idea is to read it with numpy and then convert it to pandas dataframe. [Pandas can't read hdf5 file created with h5py](https://stackoverflow.com/questions/33641246/pandas-cant-read-hdf5-file-created-with-h5py) – Sheshnath Nov 12 '17 at 21:21
  • Ah okay thanks for the link. Could you might help me with what to write? I am not really understanding what to write after the two imports. Sry, but I'm really an absolute python beginner but need this for one project. – Flix17 Nov 12 '17 at 21:43
  • See also https://github.com/pandas-dev/pandas/issues/9539 – Andy Hayden Nov 12 '17 at 22:27

0 Answers0