将pandas数据帧存储为zodb blob
pheather的Python项目详细描述
目前正在试验中。
用法,假设您已经有一个zodb连接:
import pandas, pheather, transaction conn.root.iris = Pheather() transaction.commit() iris = pandas.read_csv('iris.csv') conn.root.iris.save(iris)
然后,稍后在单独的会话中:
import pheather iris = conn.root.iris.read()
对于刚接触zodb的人,有一个helper函数 连接(并创建)基于zodb文件或基于postgres的数据库:
import pheather # Local files: conn = pheather.connection('data.fs') # Postgres database using URL-based connection strings: conn = pheather.connection('postgresql://localhost/mydb')
更改
0.1.1(2017-05-23)
- 添加了缺少的设置依赖项(对于羽毛格式:()
0.1.0(2017-05-23)
初始实验释放。