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.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cc2c65509caca96fac8d1358beb71cee7f8f9999cac703f008b9476c435afd1 |
|
MD5 | a244866d05c1f073791eed44d06a83d5 |
|
BLAKE2b-256 | 8360a399fc48f323213dcd3e51c18fc854fb9746667d3012ce2b42d421c3b206 |
Close
Hashes for chipmunkdb_python_client-2.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0770282c2b4d09709f7a6c09856311ce8d7fca8dd7e0fab3558cdcec27bda065 |
|
MD5 | 9cfd50d2f7f1f36aef652e2b0eeb9cb4 |
|
BLAKE2b-256 | 54524bd55d588608c4ba9e70f33fffcc1aa41968a386d977c7dc47a4beb1b9ad |