SkillAgentSearch skills...

Pheather

Persist pandas data frames in ZODB blobs in Feather format

Install / Use

/learn @jimfulton/Pheather
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

===================================== Store Pandas data frame as ZODB blobs

Currently experimental.

Install::

pip install cython numpy pip install pheather

Usage, assuming you have a ZODB connection already::

import pandas, pheather, transaction

conn.root.iris = Pheather() transaction.commit()

iris = pandas.read_csv('iris.csv')

conn.root.iris.save(iris)

Then, later in a separate session::

import pheather

iris = conn.root.iris.read()

For folks who are new to ZODB, there's a helper function for connecting to (and creating) a ZODB file-based or Postgres-based database::

import pheather

Local files:

conn = pheather.connection('data.fs')

Postgres database using URL-based connection strings:

conn = pheather.connection('postgresql://localhost/mydb')

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated5y ago
Forks0

Languages

Python

Security Score

70/100

Audited on Jun 27, 2020

No findings