Search code examples
pythonpandashdf5hdfstore

Get list of HDF5 contents (Pandas HDFStore)


I have no problem selecting content from a table within an HDF5 Store:

with pandas.HDFStore(data_store) as hdf:
    df_reader = hdf.select('my_table_id', chunksize=10000)

How can I get a list of all the tables to select from using pandas?


Solution

  • hdf.keys() returns a (potentially unordered) list of the keys corresponding to the objects stored in the HDFStore (link)