Native Polars expressions for histogram distribution statistics
Project description
polars-distr
Native Polars expressions for statistics over histogram distributions. The plugin
computes means, CDF values, quantiles, and exact CRPS inside lazy and streaming query
plans without Python UDFs. histogram() gives the unchanged Struct{counts, edges}
storage a logical histogram dtype that survives lazy plans and Parquet round trips.
Install with uv add polars-distr or pip install polars-distr.
import polars as pl
import polars_distr as pld # registers the Histogram dtype
result = (
pl.scan_parquet("histograms.parquet")
.select(
pld.quantiles("distribution", [0.1, 0.5, 0.9]).alias("quantiles"),
pld.crps("distribution", "observation").alias("crps"),
)
.collect(engine="streaming")
)
Create distribution from raw columns with
pld.histogram("counts", "edges"); once written to Parquet, it loads back as a
histogram column.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polars_distr-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: polars_distr-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 7.0 MB
- Tags: CPython 3.11+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21a7cec5f92d65cf3079e1ee48e3db5ee1ed847f4fd66663811c75251175ab3b
|
|
| MD5 |
810b583954aa2344ca893f7ca2fc5a8b
|
|
| BLAKE2b-256 |
34f7eec6cc08841faab9aa7030a1cd50a2e04aec841a46a1018ca0eefbdf807b
|
Provenance
The following attestation bundles were made for polars_distr-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl:
Publisher:
release.yml on silurian-ai/polars-distr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polars_distr-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl -
Subject digest:
21a7cec5f92d65cf3079e1ee48e3db5ee1ed847f4fd66663811c75251175ab3b - Sigstore transparency entry: 2229138917
- Sigstore integration time:
-
Permalink:
silurian-ai/polars-distr@1a6507e7d847854524cb045c1f2dd011ac3841bf -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/silurian-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1a6507e7d847854524cb045c1f2dd011ac3841bf -
Trigger Event:
push
-
Statement type:
File details
Details for the file polars_distr-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: polars_distr-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 6.4 MB
- Tags: CPython 3.11+, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b19f1911d8cfab256e4793528ee287d7a9224bb138e97265b37d0b7584448fa
|
|
| MD5 |
897a937b83072532aba77bcf3c8ee990
|
|
| BLAKE2b-256 |
0f9499c08a4455fc4557a7c6257b658f55949f02d1acf5923df87b741ab13eee
|
Provenance
The following attestation bundles were made for polars_distr-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl:
Publisher:
release.yml on silurian-ai/polars-distr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polars_distr-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl -
Subject digest:
3b19f1911d8cfab256e4793528ee287d7a9224bb138e97265b37d0b7584448fa - Sigstore transparency entry: 2229140008
- Sigstore integration time:
-
Permalink:
silurian-ai/polars-distr@1a6507e7d847854524cb045c1f2dd011ac3841bf -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/silurian-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1a6507e7d847854524cb045c1f2dd011ac3841bf -
Trigger Event:
push
-
Statement type:
File details
Details for the file polars_distr-0.1.0-cp311-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: polars_distr-0.1.0-cp311-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.11+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0af5ba96d64d72af47976e5759c692267537e243bc76e7d4d186d8f8a9da3ce0
|
|
| MD5 |
59af832e7a142c3109992661b3d5eed9
|
|
| BLAKE2b-256 |
0bb2b4871fd58bce682daa42eca3f4951b47b4064f7c45005bb0abbbc00663d5
|
Provenance
The following attestation bundles were made for polars_distr-0.1.0-cp311-abi3-macosx_11_0_arm64.whl:
Publisher:
release.yml on silurian-ai/polars-distr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polars_distr-0.1.0-cp311-abi3-macosx_11_0_arm64.whl -
Subject digest:
0af5ba96d64d72af47976e5759c692267537e243bc76e7d4d186d8f8a9da3ce0 - Sigstore transparency entry: 2229139542
- Sigstore integration time:
-
Permalink:
silurian-ai/polars-distr@1a6507e7d847854524cb045c1f2dd011ac3841bf -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/silurian-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1a6507e7d847854524cb045c1f2dd011ac3841bf -
Trigger Event:
push
-
Statement type: