Skip to main content

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

qutepandas-1.1.2.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qutepandas-1.1.2-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file qutepandas-1.1.2.tar.gz.

File metadata

  • Download URL: qutepandas-1.1.2.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for qutepandas-1.1.2.tar.gz
Algorithm Hash digest
SHA256 f6929676f2d4ab471d45f3f1b58dba2597afdc6d1dfaa707228a02c6fb9cc764
MD5 d4b2758045b3db76f07429125e30f0e6
BLAKE2b-256 ba6c7002e507798296817bee7529b960417915f21a2cfd4e2c4f7d41ba1209b5

See more details on using hashes here.

File details

Details for the file qutepandas-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: qutepandas-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for qutepandas-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f70a5cf109ad150c60a81280575b5db15de9fea85cc4b2005bf441d7b0606f52
MD5 f9eb7bf61cb60173d97c32478bf978a5
BLAKE2b-256 40b6180204cf7f31251eaa2965f0a81c4aa3e15520733fecf7eb9ea08af0d1c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page