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/

GitHub

The source code for this project is available on GitHub at: https://github.com/ishapatro/qutePandas

Contributing

Contributions are welcome! Please read our CONTRIBUTING.md for more information.

License

MIT License

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: qutepandas-1.1.4.tar.gz
  • Upload date:
  • Size: 19.1 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.4.tar.gz
Algorithm Hash digest
SHA256 3177998ff2ea61a6dff707205083909ba4be1ebd38d1886386cfe3164a55bdf5
MD5 e024577ac23f481db82003c872cf0617
BLAKE2b-256 a4df8fe2c1c39b548cb166f533fe77c553cfce84a5f5db47b763b2936d30a5fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qutepandas-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 23.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ff18a27431f24ebe5185e74085a29ca4317ff2970ddd438be385ade49dded708
MD5 8ddb9acb9f173de7615150a22d4134f2
BLAKE2b-256 d9797b2d54cae3981d0899effd11a2d1272e33d0283833c67433bd64268e8ca4

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