Skip to main content

polarstory

Data exploration with polars.

polarstory helps you understand a dataset, investigate individual variables, compare two extracts, and create standalone html reports. It works with polars DataFrames, LazyFrames, and parquet files.

Installation

pip install polarstory

Getting Started

import polarstory as ps

profile = ps.profile('cohort.parquet')
profile.write_html('cohort_profile.html')

Explore particular variables and build a shorter report:

report = ps.Report('Cohort findings')
report.add(profile.summary('age'))
report.add(profile.histogram('age'))
report.add(profile.frequency('enctype'))
report.write_html('findings.html')

Compare two datasets:

comparison = ps.compare('cohort_before.parquet', 'cohort_after.parquet')
comparison.write_html('comparison.html')

Reports are self-contained html files with static charts. You can open them in a browser, share them with colleagues, or print them to PDF. polarstory also provides command-line tools, a notebook explorer, and optional VS Code and Windows File Explorer integrations.

Development

Run the project's tests with:

python -m pytest -q

The test guide describes the independent statistical reference checks.

Documentation

For guides, examples, and the API reference, visit polarstory documentation.

Working with research data? Review reports for sensitive information and small cells before sharing. Examples in the documentation use synthetic data.

Metadata

Release files for polarstory 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polarstory 1.2.0
File Size Uploaded Provenance Actions
polarstory-1.2.0.tar.gz 80.7 kB With provenance Details for polarstory-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for polarstory 1.2.0
File Interpreter ABI Platform Actions
polarstory-1.2.0-py3-none-any.whl Python 3 none any Details for polarstory-1.2.0-py3-none-any.whl

Total release size: 148.2 kB

Release files / polarstory-1.2.0.tar.gz

Download URL polarstory-1.2.0.tar.gz
Size 80.7 kB
Tags Source
SHA-256 checksum
How to use checksums
abcd2c2f3a896ff805b46a27b871daf93efddabc3a921a4902b3bff4377fbc83
BLAKE2b-256 checksum
How to use checksums
10a1eafee53fbdd1716b9151166bf97b14788840e55ef371d3972516c44fa15d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / polarstory-1.2.0-py3-none-any.whl

Download URL polarstory-1.2.0-py3-none-any.whl
Size 67.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb78ca3f8061a85cabf80f0f9451b3c65063d596b74d767bee36b5ee29d14608
BLAKE2b-256 checksum
How to use checksums
495915ef5eb1a1976a32413886dcf241107351561653c9b3de998d7335ead343
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for polarstory 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for polarstory-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page