Read and Write Dataframes and Data to a chipmunkdb
Project description
chipmunkdb :chipmunk: python-client
Modify and save dataframes with timeseries or without to an ultra-fast ipc chipmunk database with olap features. (Powered by duckdb)
Installation
pip install chipmunkdb-python-client
Usage
import sys
sys.path.insert(0,'..')
import pandas as pd
import numpy as np
from chipmunkdb.ChipmunkDb import ChipmunkDb
db = ChipmunkDb("localhost")
#receive all collections
collections = db.collections()
# create a dataframe
df = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),
columns=['a', 'b', 'c'])
print(df)
## save your pandas
db.save_as_pandas(df, "mydf")
## get infos abotu your dataframe
collection = db.collection_info("mydf")
# read your dataframe again
df2 = db.collection_as_pandas("mydf")
print(df2)
# call any query on your data
d = db.query("SELECT * FROM mydf WHERE a=1 LIMIT 100")
print(d)
Info
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for chipmunkdb_python_client-2.0.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8b7e0f3701ec85c9b366a858670ee5babec16fb8540615eb985ed144735d85c |
|
MD5 | b23df987f3afcd318044bf828f7404be |
|
BLAKE2b-256 | 5e2cf3794c75c24287edb4bc9364ce5aadbac8c13b607755aa4e436f4f100d6a |
Close
Hashes for chipmunkdb_python_client-2.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8593489af7e2afcacbd26872119e25db3dd1f8cd91f989ee2b298203dfddcc2f |
|
MD5 | e586567894864856adb831623cc2c820 |
|
BLAKE2b-256 | 09823eef013a0a40ffaf2ca0927736b65f0a706788468f472db06ee65083173b |