Reports API¶
Combine tables, static charts, prose, and custom HTML into a print-friendly report.
| API | Description |
|---|---|
Report |
Ordered tables, charts, text, and HTML components |
ReportItem |
A small, reusable result and presentation metadata |
Report.section |
Group subsequent additions under a named heading |
Report.add |
Insert a component or a complete variable profile |
Report.add_table |
Add an aggregated polars table to the current section |
Report.add_great_table |
Add a formatted Great Tables table to the current section |
Report.add_chart |
Add a Matplotlib, Altair, or plotnine chart as static SVG |
Report.add_text |
Add a plain-text paragraph; HTML is escaped on rendering |
Report.add_html |
Insert a trusted HTML fragment into the current section |
Report.add_table1 |
Compute and insert one formatted descriptive Table 1 (no p-values) |
Report.add_profile |
Append sections from a Profile or a dataframe/path, without raw rows |
Report.remove |
Remove an item from any section by its stable ID |
Report.move |
Reorder an item; before can also target another section |
Report.items |
All items in their current display order |
Report.to_html |
Return a complete HTML document as a string |
Report.write_html |
Write an HTML report, creating directories if needed |
Report.to_spec |
Return a recomputable recipe for a file-backed curated report |
Report.write_spec |
Write a portable recipe, using source paths relative to the JSON |
Report.from_spec |
Regenerate a curated report from a JSON recipe and parquet files |
ReportItem.to_html |
Render only this component as a standalone HTML document |
ReportItem.show |
Preview this component in a notebook or a local browser |