Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get list of HDF5 contents (Pandas HDFStore)

Tags:

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?

like image 446
bcollins Avatar asked Feb 27 '15 16:02

bcollins


2 Answers

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

like image 178
kalu Avatar answered Sep 21 '22 09:09

kalu


hdf.keys() just return the the name of groups or tables,my_table_id instead of column names.

like image 45
rage Avatar answered Sep 19 '22 09:09

rage