Get list of HDF5 contents (Pandas HDFStore)

bcollins picture bcollins · Feb 27, 2015 · Viewed 16.6k times · Source

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?

Answer

kalu picture kalu · Sep 28, 2015

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