获取 HDF5 内容列表 (Pandas HDFStore)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28770189/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 22:59:36 来源:igfitidea点击:
Get list of HDF5 contents (Pandas HDFStore)
提问by bcollins
I have no problem selecting content from a table within an HDF5 Store:
我从 HDF5 存储中的表中选择内容没有问题:
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?
如何使用 Pandas 获取所有表的列表以供选择?
采纳答案by kalu
回答by rage
hdf.keys()just return the the name of groups or tables,my_table_idinstead of column names.
hdf.keys()只需返回组或表的名称,my_table_id而不是列名称。

