Report.add_table¶
add_table ¶
add_table(data: DataFrame | LazyFrame, *, title: str, caption: str | None = None, notes: str | None = None, id: str | None = None) -> ReportItem
Add an aggregated polars table to the current section.
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
Example¶
table = ps.stats.frequency(df, 'enctype')
report.add_table(table, title='Encounter types')
Research note¶
Custom tables are not automatically de-identified. Review small cells and identifiers before sharing.