I'm trying to open a group-less hdf5 file with pandas:
import pandas as pd
foo = pd.read_hdf('foo.hdf5')
but I get an error:
TypeError: cannot create a storer if the object is not existing nor a value are passed
I tried solving this by assigning a key
:
foo = pd.read_hdf('foo.hdf5','key')
which works if key
was a group, but the file has no groups, but rather several datasets in the highest hdf structure. i.e. the structure of the working file is: Groups --> Datasets, while the structure of the not working file is: Datasets. Both work fine when opening them with h5py, where I would use:
f = h5py.File('foo.hdf5','r')
and
dset = f['dataset']
to view a dataset. Any ideas how to read this in pandas?