polarstory

Explore polars datasets and share clear, static html reports.

polarstory helps researchers inspect a dataframe or parquet dataset, review its variables, and select tables and figures for a project report. Its reports use ordinary html tables and embedded SVG figures, with no JavaScript required.

Start here

I want to… Read
Generate a complete profile Getting started
Understand one variable Explore variables
Assemble selected results Build a report
Profile a file without Python code CLI and integrations
Review Examples Cohort overview
Find a function or parameter API reference

Three core workflows

Automatic profiling

import polarstory as ps

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

Explore individual variables

p = ps.profile('cohort.parquet')
p.show('age')

# optional interactive explorer in a VS Code notebook
p.explore()

Share selected findings

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

About polarstory

polarstory is a tool for descriptive data exploration and reporting. It is not a regression package, a data-cleaning framework, etc.

It accepts Polars DataFrame and LazyFrame objects, and local Parquet files and datasets. It prioritizes Python 3.14 and Polars 2 while retaining broader declared compatibility.

Healthcare data: Examples in these docs use fabricated records. Generated reports may still disclose sensitive information through rare categories or small cells. Always review report outputs before sharing them.

For comparing successive extracts, see Compare datasets.