A pandas-like library for kdb+/q using pykx
Project description
qutePandas
A pandas-like library for kdb+/q powered by PyKX.
While Pandas is the gold standard for data manipulation in Python, it often struggles with memory overhead and execution speed when handling multi-gigabyte datasets or complex time-series operations. qutePandas addresses these limitations by offloading compute-intensive operations to the kdb+/q engine, leveraging its columnar architecture and high-performance vector processing. By providing a familiar pandas-like API, it allows Python engineers to achieve kdb+ speeds without leaving the Python ecosystem.
Installation
pip install qutePandas
Note: Requires a kdb+ license and the PyKX library.
Quick Start
import qutePandas as qpd
import pandas as pd
# Convert a pandas DataFrame to a qutePandas table
df = pd.DataFrame({
"time": pd.date_range("2023-01-01", periods=1000000, freq="ms"),
"price": pd.Series(range(1000000))
})
q_table = qpd.DataFrame(df)
# Perform high-performance aggregation
# Computation happens in kdb+
res = qpd.apply(q_table, "sum", axis=0, return_type="p")
print(res)
Documentation
Full documentation, including API reference and performance benchmarks, is available at: https://ishapatro.github.io/qutePandas/
Author
Created by Isha Patro
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qutepandas-1.1.0.tar.gz.
File metadata
- Download URL: qutepandas-1.1.0.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f03c33d9209f994a1bb3f1ca0fe34810ccc1913a3d70574823c73eea18105aea
|
|
| MD5 |
6af3be4044cb2dc02a7a6bb9ac41c15d
|
|
| BLAKE2b-256 |
96bbbfc58b8797d8aafe1ff9088d007583e3395a6e39b3235cf34e4449aca570
|
File details
Details for the file qutepandas-1.1.0-py3-none-any.whl.
File metadata
- Download URL: qutepandas-1.1.0-py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56eb1a7de1689c27491a340cb9b9bba47b0d0a5fd4a84c2874d532d1c5b84d43
|
|
| MD5 |
44004a6f4b189d75a83a6a744d65ddf0
|
|
| BLAKE2b-256 |
5138a49a2e7a5de9067bca35735a220506c18374178400d1e9b82e4eaf63c178
|