跳转到主要内容

将Pandas数据框存储为ZODB blob

项目描述

目前处于实验性阶段。

使用方法,假设您已建立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的用户,有一个辅助函数用于连接到(和创建)基于文件或Postgres的ZODB数据库

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)

  • 添加缺失的设置依赖项(对于feather格式 :( )

0.1.0 (2017-05-23)

初始实验性版本。

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

pheather-0.1.1.tar.gz (3.2 kB 查看哈希)

上传时间:

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面