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

Uploaded Python 3

File details

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

File metadata

  • Download URL: qutepandas-1.1.3.tar.gz
  • Upload date:
  • Size: 19.2 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.3.tar.gz
Algorithm Hash digest
SHA256 577e4334eb8e4af3b4cdd2a442537f12fc3f2ef2d6c8a364edae7588a94bed8e
MD5 6dbfd0617e5d863a9851f089113f0b51
BLAKE2b-256 d35acc0157b0ad411c8818a436d0862a7a631aa86e712882a0f22e3968293a4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qutepandas-1.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 12e4e437eaf722d0b792b1fd9571fff9e98fd0993ba0ccc775f7f4a848eb81ed
MD5 f035d2ffe53ae73a92e82e461c8606b1
BLAKE2b-256 e38fc2009a617e1a3ff1dff3d8ae6985510a1c84f5b5f9d73663a309db166820

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