将大 pandas (python)数据帧串行化为二进制格式 [英] serialize pandas (python) dataframe to binary format

查看:211
本文介绍了将大 pandas (python)数据帧串行化为二进制格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这篇文章包含我的问题,但实际上是另一个问题:熊猫DataFrame序列化

This post includes my question but is actually about another question: Pandas DataFrame serialization

是否有序列化例程,如pandas数据帧的numpy.savez?我看到我可以使用hdf5,但是我希望避免这种情况,因为hdf5是一个额外的安装,我无法在所需的所有平台上获得h5py并运行。

Is there serialization routine like numpy.savez for pandas dataframes? I see I can use hdf5 but I was hoping to avoid this since hdf5 is an extra install and I haven't been able to get h5py up and running on all the platforms I need.

推荐答案

Arg,DataMatrix与DataFrame相同。有一个加载和保存功能似乎工作...我想最好的方式来搜索文档是使用交互式提示与ipython。

Arg, DataMatrix is the same as DataFrame. There is a 'load' and a 'save' function that seems to work ... I guess the best way to search the docs is using the interactive prompt with ipython.

这篇关于将大 pandas (python)数据帧串行化为二进制格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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