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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7914a6c3a4ce81c2c5900e2892380519146346f78fe2c123b7af9d0564ce21d |
|
MD5 | 1025a123f00f75a0a295cbd7b12c2886 |
|
BLAKE2b-256 | 9da6fa512c30f06847a4557a6e851c9635abb762c4e80cb914311eb4dcca0892 |
Close
Hashes for chipmunkdb_python_client-2.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49cf8ec11fe400862bd59edf83b3fe2f597349b7a647862451ea74464d1e6db4 |
|
MD5 | 99f77cca05277604ecae068ac20e511b |
|
BLAKE2b-256 | f8ff7d64af8f8ecd69993ae8abe4f33ebacdd5a92d3cbfb7485d2fea168b2758 |