I have .mat files with HDF5 data and I want to load it into Python (Pandas DataFrame). I can load the file:
f2 = h5py.File("file.mat")
f2['data']
which is an HDF5 dataset:
<HDF5 dataset "data": shape (9999999, 32), type "<f8">
If I read it with Pandas:
g = pd.read_hdf("file.mat",'data')
I get the following error:
cannot create a storer if the object is not existing nor a value are passed
How do I convert this to a Pandas DataFrame?