Example of how to get a list of names (variables) of data stored in a HDF5 file using pandas in python
1 -- Read the file
First, to read an HDF5 file using pandas, we can do:
store = pd.HDFStore('data.hdf5')
or
with pd.HDFStore('data.hdf5') as store:
...
...
2-- Get a list of names (variables) of data stored in a HDF5 file using pandas
To get the name of all data stored in the hdf5 file, a solution is to use keys() :
store.keys()
or
with pd.HDFStore('data.hdf5') as store:
print(store.keys())