Repository navigation
Releases
Releases · andrewadlof/polars-data-profiling
v0.1.0
First release: a pandas-free fork of fg-data-profiling (formerly ydata-profiling and pandas-profiling) with a lazy Polars engine. Profiles pl.DataFrame and pl.LazyFrame inputs into the same HTML and JSON reports, reading the source about a dozen times whatever the number of columns.
Install
uv add polars-data-profilingimport polars as pl
from polars_data_profiling import ProfileReport
ProfileReport(pl.scan_parquet("data.parquet"), title="Data").to_file("report.html")Pure Python (one wheel for every platform), Python 3.11 to 3.14, Polars 2.0+. Optional extras: image, wordcloud, notebook, or all.
Documentation: https://andrewadlof.github.io/polars-data-profiling/
Added
- A Polars engine built on LazyFrames. Type inference runs in one lazy pass over all columns. Variable summaries are
generators that yield their lazy requests, and the requests of all columns are evaluated together, oneselectand one
collect_allper round. Queries of a round share one read of the source through acache()node. ProfileReportacceptspl.DataFrame,pl.LazyFrameand pyarrow tables.- Python 3.14 support (Python 3.11 to 3.14 are tested on Linux, macOS and Windows).
- The
profilenamespace on frames:df.profile.report(...)andlf.profile.report(...). engine.share_scansandengine.collect_enginesettings (shared scans, and the Polars engine used to collect, for
examplestreaming).- Memory sizes estimated lazily from the data, nested types included.
- The command line tool opens CSV, TSV, Parquet, IPC and NDJSON files lazily.
- A test suite that checks the statistics against numpy and scipy, the ADF test against statsmodels, and how often a
profile reads its source.
Changed
- Value counts are
dicts, most frequent first.value_counts_without_nankeeps the most frequent values and
value_counts_index_sortedthe smallest and largest. Totals stay exact. - Correlation matrices, samples and duplicates are
pl.DataFrames. Time series are frames withindexandvalue
columns. - The augmented Dickey-Fuller test, ACF and PACF are computed with numpy (same results as statsmodels).
- Strings are parsed as dates against a fixed list of formats.
- In time-series mode,
sortbyis the time index (Polars frames have no index). - The "constant value" alert no longer shows the value of a redacted (sensitive) variable.
- Describing a report that has no DataFrame raises a
ValueErrorinstead of profiling an empty frame. - Settings use pydantic 2 and pydantic-settings instead of the
pydantic.v1compatibility layer. Numbers are still
accepted for string settings, and unknown nested keys are still ignored, so configurations written for ydata-profiling
load.
Fixed
config_default.yamlandconfig_minimal.yamlquote theyes/no/y/n/t/fkeys ofvars.bool.mappings. YAML
read them as booleans, so a report configured from these files did not recognise "yes"/"no" columns as booleans.- The same files set
plot.cat_freq(they named itplot.cat_frequency, which was silently ignored).
Removed
- The pandas and Spark backends, and pandas, PySpark, phik, seaborn, statsmodels, matplotlib, multimethod, typeguard,
dacite and requests as dependencies. - The
phi_kcorrelation (phik requires pandas). - The matplotlib renderer and PNG charts: charts are inline SVG.
- The Great Expectations integration.
- Usage analytics: no request is sent to packages.ydata.ai.
- The
ydata_profilingcompatibility package.