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.1.tar.gz (25.2 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.8+ Windows x86-64

polars_tdigest-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.1 MB view details)

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

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

Uploaded CPython 3.8+ macOS 11.0+ ARM64

polars_tdigest-0.1.1-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.1.tar.gz.

File metadata

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

File hashes

Hashes for polars_tdigest-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2d34a5db55d138510ea679db8d3a33c9ddf62f3e9615809e4ff90b5d9e02cc74
MD5 f66747b67d895269679a9b6305f1c7c5
BLAKE2b-256 31255df7a9029b047e6785acc9d8222dd9e3ae4669c1a90c2fab93e5ecaa1ca0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_tdigest-0.1.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0ee3f26475cf30a0df3e0065d8754d551ded82f7d7094f0f341e529491c249ec
MD5 33fe99e84f77f1f3536fdd6640c2ae51
BLAKE2b-256 ba9ad29c6c3a830284fd4ab288ca75a5cffaf508d884c9595d9c57a97cf35b34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_tdigest-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 88a2b8d3e7b9dfc2b3ecb853bf8a51de1d6c5cfcc3fbf35614a0f1223fc66b53
MD5 fedb7e6eafc892ccc2a5c37358410942
BLAKE2b-256 48833eb1d80dd843fabebc874f91907ac97a2f3a2f1aeba5671acb455c51c011

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_tdigest-0.1.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8bbd7e493985d01e46ca9a193377d32687b92f34e017db01bf5cbae3ff2d441c
MD5 b2da774a0c19696556cac66925c10af1
BLAKE2b-256 f1a08ad05184bdbecb5190f9b15e8d4e310e86e16b6fc4e1b8c7dda4e1b74785

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_tdigest-0.1.1-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b44971e03fcffff73360cae7761a0d79c66a0b5731f7c292c66106afa3afe842
MD5 3f31b5c06816cd8ba70b4fccf11228f8
BLAKE2b-256 e990ba677680e4eb76f7ecc7575f728d4c78ded02af5fd53cecf0bc50749fdb6

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