API reference

Each public function or method has its own reference page. Signatures and docstrings come from the Python source; each page can include a short research example. Start with a workflow guide if you want a complete analysis.

API area Main entry points
Automatic profiling ps.profile(), Profile, ProfileOptions
Variable exploration ps.explore(), Explorer.preview()
Curated reports Report, Report.add(), Report.write_html()
Statistics and diagnostics ps.stats.frequency(), stats.table1(), missingness diagnostics
Static plots ps.plots.histogram(), ps.plots.frequency()
Variable metadata Variables, Variables.set(), Variable
Dataset comparison ps.compare(), DatasetComparison
parquet inspection ps.inspect(), Inspection
Quality alerts Alert, alert helpers
CLI commands Inspect, profile, diagnose, reproduce, integrations

Conventions

  • Inputs: polars DataFrame, LazyFrame, or supported local parquet source, unless the method specifies otherwise
  • Tables: polars DataFrames containing descriptive results
  • Charts: Static Matplotlib figures, rendered as SVG in HTML reports
  • Report components: ReportItem objects can be added with Report.add()
  • Privacy: Aggregates may still disclose small cells or identifying categories; review outputs before sharing

Examples assume import polarstory as ps and an existing polars dataframe named df, unless the snippet shows a file path.

Signatures are generated from source using mkdocstrings. This makes documentation updates follow changes to Python functions without retyping parameters. See documentation maintenance.