Skip to main content

No project description provided

Project description

T-Digest Polars Plugin

This Polars plugin is a wrapper around the T-Digest Rust implementation. It not only provides means to compute an estimated qunatile, but exposes the tdigest creation and merging functionality so it can be used to estimate quantiles in a distributed environment.

For an example see the Yellow Taxi Notebook. Note that this example is a bit artifical as it doesn't distribute the computation. It is mainly meant to show how to use the plugin with multiple partitions of a dataset. It does not make sense to use this plugin for computations on a single machine as the tdigest computation essentially adds overhead to the percentile computation and is therefore slower than computing the actual percentile.

How to contribute

Dev setup

Setup your virtual environment with a python version >=3.8, e.g. use python -m venv .env. Install the python dependencies used for development:

python -m pip install -r requirements.txt

Install Rust.

Build

In order to build the package, please run maturin develop. If you want to test performance, run maturin develop --release.

Commit / Release

Before committing and pushing your work, make sure to run

cargo fmt --all && cargo clippy --all-features
python -m ruff check . --fix --exit-non-zero-on-fix

and resolve any errors.

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

polars_tdigest-0.1.2.tar.gz (25.4 kB view details)

Uploaded Source

Built Distributions

polars_tdigest-0.1.2-cp38-abi3-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.8+ Windows x86-64

polars_tdigest-0.1.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ x86-64

polars_tdigest-0.1.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

polars_tdigest-0.1.2-cp38-abi3-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

polars_tdigest-0.1.2-cp38-abi3-macosx_10_12_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.8+ macOS 10.12+ x86-64

File details

Details for the file polars_tdigest-0.1.2.tar.gz.

File metadata

  • Download URL: polars_tdigest-0.1.2.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.6.0

File hashes

Hashes for polars_tdigest-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4907d1142a8acccca7edfac3a4dc0270274f148fde8b3ec00ede7c7da03b8ad8
MD5 7ccb47e28ebef1717d93ae34711a0584
BLAKE2b-256 a6367a2f7d541eaa62d0c307ff638c36ce7c09a1f81facf7c538c7a9df52ea68

See more details on using hashes here.

File details

Details for the file polars_tdigest-0.1.2-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for polars_tdigest-0.1.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 38e8059de29807137c43be13295ac3a28b983e5f87817af6895e0eac39d586de
MD5 491a34da81be4f8c7a36ace12484ef26
BLAKE2b-256 af377a7226d8dc5e02675f10ee5679803a45da8da341fc97f33ff5bb4af549ee

See more details on using hashes here.

File details

Details for the file polars_tdigest-0.1.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for polars_tdigest-0.1.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c7dc8de3fe0c90dff62e2714269131973f0f21f84469c0f25a022049c2a80143
MD5 ef694d4dd330240735a62b20cf0daf48
BLAKE2b-256 5ce2ddb8c9ff92b4bdd75968ade108f819791a80dc1b1ad22d4c60304587893f

See more details on using hashes here.

File details

Details for the file polars_tdigest-0.1.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for polars_tdigest-0.1.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 19e1bab19ee8cc1f16d0ba43047fb8a1c057e0ffd28ebbc6846a2222c7315526
MD5 335e982662e7c3d1f70346cc45963956
BLAKE2b-256 e1c54bb876d379544344f5fdd92904390cca09346ed79cd564b8d2c195318603

See more details on using hashes here.

File details

Details for the file polars_tdigest-0.1.2-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polars_tdigest-0.1.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a8f5390b36ec099cf1d8dec4f735d30f52841b7458b49017e848470b8eecb71
MD5 5545d1b1aa7a9c38c54c20b78f0afd80
BLAKE2b-256 3d86d88392a3e5febde6f00a359f4bb446f1db9515281728233a053811067c78

See more details on using hashes here.

File details

Details for the file polars_tdigest-0.1.2-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for polars_tdigest-0.1.2-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 88131159a042ecf6ebf1deb2fc1b9abec63ab4ed544115682231ccc5678c515a
MD5 27073243d2437c9b4b54a9964d040733
BLAKE2b-256 a42a40de5a61125e14ef74992de27bae0a753e2667ba471cd2880c9899bba7c9

See more details on using hashes here.

Supported by

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