Skip to main content

polars-data-profiling

Profiling reports for Polars DataFrames and LazyFrames, without pandas. For every column: its type, statistics, distribution, missing values and alerts, plus correlations, interactions, samples and duplicate rows, in one HTML page or JSON document.

import polars as pl
from polars_data_profiling import ProfileReport

lf = pl.scan_parquet("events/*.parquet")
ProfileReport(lf, title="Events").to_file("events.html")

Importing the package also registers a profile namespace on frames:

import polars_data_profiling  # noqa: F401

df.profile.report(minimal=True).to_file("quick.html")

Why this exists

fg-data-profiling (formerly ydata-profiling and pandas-profiling) builds excellent reports, but on pandas: Polars data has to be converted first, every column is described one at a time on materialised data, and pandas comes in through its own code and through phik, seaborn and statsmodels.

This fork keeps the report and replaces the engine with one built on Polars LazyFrames:

  • Lazy. Every statistic is a lazy query. A LazyFrame is never collected whole, so scan_parquet and scan_csv inputs only materialise aggregates.
  • Batched. Type inference is one select over all columns. Variable summaries are generators that yield their lazy requests, and the requests of every column are evaluated together, one select and one collect_all per round, sharing one read of the source. A profile reads its source about a dozen times, whatever the number of columns.
  • No pandas. pandas is not a dependency, direct or transitive, with or without extras. CI fails if it appears in the resolved dependency tree, and checks that profiling never imports it.
  • Same report. The HTML report, its configuration and most of the API are unchanged. See Coming from ydata-profiling.

Install

uv add polars-data-profiling

Without uv, pip install polars-data-profiling works too. It needs Python 3.11+ and Polars 2.0+. Optional extras: image (image columns), wordcloud (word clouds) and notebook (Jupyter widgets), or all.

Speed

One 1,000,000-row, 15-column frame (6 float, 4 integer, 4 categorical and 1 unique-string column), default settings, on the same Windows machine:

Profiler Time to HTML
fg-data-profiling 4.20.0 (pandas 2.3.3) on the frame converted 83.3 s
polars-data-profiling on the frame as a LazyFrame 8.9 s

The same profile reads its source 10 times. Without shared scans it would read it 255 times, once per query.

Documentation

andrewadlof.github.io/polars-data-profiling: usage, configuration, how the lazy engine works, and the differences from ydata-profiling.

Development

uv sync --all-extras
uv run just check     # ruff, the pandas check and the tests
uv run just           # all recipes

See Development for the recipes and the release process.

License

MIT, like the project it is forked from. See LICENSE and NOTICE. Not affiliated with or endorsed by YData Labs Inc.

Metadata

Release files for polars-data-profiling 0.1.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 polars-data-profiling 0.1.0
File Size Uploaded Provenance Actions
polars_data_profiling-0.1.0.tar.gz 345.5 kB With provenance Details for polars_data_profiling-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for polars-data-profiling 0.1.0
File Interpreter ABI Platform Actions
polars_data_profiling-0.1.0-py3-none-any.whl Python 3 none any Details for polars_data_profiling-0.1.0-py3-none-any.whl

Total release size: 769.5 kB

Release files / polars_data_profiling-0.1.0.tar.gz

Download URL polars_data_profiling-0.1.0.tar.gz
Size 345.5 kB
Tags Source
SHA-256 checksum
How to use checksums
acb773f223aac08c964a58e9317b0e43dde28af9c9d1be10df7c37b892ac3a65
BLAKE2b-256 checksum
How to use checksums
acf6ba4c94d03eac49dec7312340870597e7d145520a5da3e3d4c016e3605c57
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 25, 2026.

Transparency log

Release files / polars_data_profiling-0.1.0-py3-none-any.whl

Download URL polars_data_profiling-0.1.0-py3-none-any.whl
Size 424.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3928fe83d2112bddf105a4748d943f1f6e07d44665f641aee2da5eec0efdda26
BLAKE2b-256 checksum
How to use checksums
b0db351e5c822441ef8e59cfd6e1876334d761376c7dd26bba00fb06e3d1616f
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 25, 2026.

Transparency log

Security for polars-data-profiling 0.1.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 polars_data_profiling-0.1.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 25, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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