iaga2hdf.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:pyrsss 作者: butala 项目源码 文件源码
def read_hdf(hdf_fname, key):
    """
    Read contents of HDF file *hdf_fname* associated with *key* and
    return a :class:`DataFrame`, header tuple.
    """
    if not os.path.isfile(hdf_fname):
        raise ValueError('file {} does not exist'.format(hdf_fname))
    with PD.HDFStore(hdf_fname) as store:
        df = store.get(key)
        header = store.get_storer(key).attrs.header
        return df, header
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号