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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be803aefb269a59b4ee660513628cb383d8fcc5f5333cb678ef55d4847d7f654 |
|
MD5 | 601e6d1069a7a0bf68f0b2095e50e3ec |
|
BLAKE2b-256 | 4fc7f002a900023c9ff73783c7dd696a1766082dec94d492b56022ec97752ff5 |
Close
Hashes for chipmunkdb_python_client-2.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abe2113eb2eaea9fa0a18efb8406d2d846ba8d0636f494991de91160ccf7dcf5 |
|
MD5 | 720b5d0b042be3b0954b942b6a8dc19f |
|
BLAKE2b-256 | a1062759d31f7bd87d3778611b509ea6c9481d556beaa33c2eb6d897e2fecdf7 |