Having arrived at this rather late, I thought it might be useful if you need metadata to continue I / O. There was a relatively new package called h5io that I used to do this.
It should allow you to quickly read / write from HDF5 for several common formats, one of which is a data framework. Thus, you can, for example, put in the dictionary of the dictionary and include metadata as fields in the dictionary. For example:.
save_dict = dict(data=my_df, name='chris', record_date='1/1/2016') h5io.write_hdf5('path/to/file.hdf5', save_dict) in_data = h5io.read_hdf5('path/to/file.hdf5') df = in_data['data'] name = in_data['name'] etc...
Another option would be to view a project such as xray , which in some respects is more complex, but I think it allows you to use metadata and is pretty easy to convert to a DataFrame.
choldgraf Jan 13 '16 at 21:53 2016-01-13 21:53
source share