TypeError:read_hdf()恰好接受2个参数(给定1个) [英] TypeError: read_hdf() takes exactly 2 arguments (1 given)

查看:99
本文介绍了TypeError:read_hdf()恰好接受2个参数(给定1个)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在不知道键的情况下如何用pandas.read_hdf打开HDF5文件?

How to open a HDF5 file with pandas.read_hdf when the keys are not known?

from pandas.io.pytables import read_hdf
read_hdf(path_or_buf, key)
pandas.__version__ == '0.14.1'

此处的关键参数未知.谢谢

Here the key parameter is not known. Thanks

推荐答案

在使用因此,基本上,只需使用HDFStore加载它并传递路径,然后仅显示对象,就会在输出中打印键.

So basically just loading it using HDFStore and passing the path and then just displaying the object will print the keys in the output.

这篇关于TypeError:read_hdf()恰好接受2个参数(给定1个)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆