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.1.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.1-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qutepandas-1.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 7b05507316037b4a26603778f2e42c2349557ad9581da3d8dd63f45f7d2c608c
MD5 eaccd5033a30a61b7035f7339e685e9b
BLAKE2b-256 e0272d03ee0c854f6be10494f714ffde3239e8630a264ca7d57e88a0e3c78d40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qutepandas-1.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8186947efca6e48e54e0d36cf9fd6e8522256076117834b877219f66b3188dd
MD5 435d9c962a1659fc7cd5ff755aac8d6f
BLAKE2b-256 527e9fa0f3fe8e8fdf16a237ff84b370a85882c6cc49be1b04c210243c0a3cb8

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