Report.add

add

add(item: object) -> ReportItem | tuple[ReportItem, ...]

Insert a component or a complete variable profile.

A variable profile expands to its summary and optional chart and returns a tuple of inserted report components.

Example

report = ps.Report('Cohort findings')
report.add(p.summary('age'))
report.add(p.frequency('enctype'))

← Reports API