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.0.0.tar.gz (4.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.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qutepandas-1.0.0.tar.gz
  • Upload date:
  • Size: 4.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.0.0.tar.gz
Algorithm Hash digest
SHA256 a178582e04a03e57ce66b5cc6c8ad5a555b8669fbba1270a23b725ff9cfd8fce
MD5 6345423f44095ea7c8cc184badc6621d
BLAKE2b-256 dc5e2b15da29018fa142949bb61e615c34caa2093b9b9c6a472bfbe1c80dbd1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qutepandas-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b4bd515e66c33901cff27cbb9e326583865d952b2b7483d541f52be15d6748b
MD5 e89823b1e7a665c9ab3fa103211ef174
BLAKE2b-256 d1801ca363ed24e1e886457f3af7de4adcf5ce46e37f5f0bca803ec7202bc74a

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