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

Uploaded Source

Built Distributions

polars_tdigest-0.1.3-cp38-abi3-win_amd64.whl (3.6 MB view details)

Uploaded CPython 3.8+ Windows x86-64

polars_tdigest-0.1.3-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.3-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.3-cp38-abi3-macosx_11_0_arm64.whl (3.5 MB view details)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

polars_tdigest-0.1.3-cp38-abi3-macosx_10_12_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.8+ macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for polars_tdigest-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c1ca345986e4ac5b0ddb4a213145b242a0d7d40aff0e00ef8a6e6945cea6733c
MD5 32a19817fc846dd9c83a3ef267f43727
BLAKE2b-256 265416939ab2d6d2a6a256c3d8aa3fcd27283993f417e75d7aaaeba3bd43ec24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_tdigest-0.1.3-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c79c4973badc21b095e43d031560b1d78e5818c8089706d2cb96785bb5e2b958
MD5 70fb7d3f40080c9d7bab5359adbceff8
BLAKE2b-256 cd76568d8f8631f4c4e6a70dddc1612326465caaf7bc7a9bdfadfa233d146b0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_tdigest-0.1.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eda525cc6d19db5271c7153e83e710d9d74eaef4e6334c8700d3db3441c4236a
MD5 ecae068292cbf5e0438c6c2e1a572843
BLAKE2b-256 9d90dbba39528119dcdf884f3e0e36b1e8f0b7b97e4fa57282cfea8ca013433c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_tdigest-0.1.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7265bbcd4ac3ea4d85be925f14ac939ee417da6931c7d5a7b64aad311cbe34e2
MD5 7d72c64cccb5151866bc40ff4baf3761
BLAKE2b-256 956264b849f2ab144afdbd071057c57c71d74bad068f0f7af1e752df117d1fe8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_tdigest-0.1.3-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9aeb1986f4ba83487cc0dea16e917eb8c0f7d020d61448ba344ce5014dd7e6f
MD5 df25fe3791bb42ef6f03d74af056e062
BLAKE2b-256 e4549d7a448f92be4f47b52cf11adcc3048b51712ffd721e9568161c9f8acc2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_tdigest-0.1.3-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e8981609fb8210c6cd8e29ba203b51fbfddd346c54c3013e5db732c85f2f3589
MD5 a7db8c6765150864343efa6ff24f981b
BLAKE2b-256 5a8289e2781074ff2a8af33ba8bbf155922b49f5203036b5c1336027b91ab965

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