20

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?

hpaulj
  • 221,503
  • 14
  • 230
  • 353
bcollins
  • 3,379
  • 4
  • 19
  • 35
  • See related: http://stackoverflow.com/questions/27097925/typeerror-read-hdf-takes-exactly-2-arguments-1-given – EdChum Feb 27 '15 at 16:52

2 Answers2

19

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

Tom Udding
  • 2,264
  • 3
  • 20
  • 30
kalu
  • 2,594
  • 1
  • 21
  • 22
1

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

rage
  • 11
  • 1