【发布时间】:2014-05-21 00:44:21
【问题描述】:
Pandas DataFrame 可以像这样转换为 hdf5 文件;
df.to_hdf('test_store.hdf','test',mode='w')
我有一个 sqlite db 文件,它必须转换为 hdf5 文件,然后我会使用 pd.read_hdf 通过 pandas 读取 hdf5 文件。
但首先如何将 python sqlite db 转换为 hdf5 文件?
编辑:
我知道在 pandas 中使用 .read_sql 方法。但我想先将 db 转换为 hdf5。
【问题讨论】: