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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1851dd7de54dc40982cbafa15ee78609bc1556ffb0983bd55193b89e89a12b2e |
|
MD5 | 7f0598ff7b6b0992c33a7247ceafc8c0 |
|
BLAKE2b-256 | ccf03bd5ad8fefc35f9cf48d2141664527163123b35eb0aaeb0e889c776b73d2 |
Close
Hashes for chipmunkdb_python_client-2.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b963fcfd9eddbbcf8a2a7f1ca6e7e3c48e95004c6e9177e2b17f1acd8bd0ca1 |
|
MD5 | 2e8345ce371d8058fc3d90ee69a52011 |
|
BLAKE2b-256 | f830622128d7be8591a7eb8d7218c65586b835e4c154c87aedab3ace75ae9d37 |