Profile.item¶
item ¶
item(name: str, kind: str = 'summary') -> ReportItem
Get one cached reusable component without building a full profile.
For a variable, choose summary (or frequency for categorical and
bounded-cardinality numeric variables)
and distribution (aliases: histogram, timeline, text_length).
Dataset components include overview, data_dictionary, inventory, missingness and
alerts (prefix with @ to avoid column-name collisions);
item('missingness', 'chart') returns the missingness bar chart.
Returned components contain only aggregated results and can be added
directly to a Report. Sensitive columns obey ProfileOptions.
Example¶
p = ps.profile(df)
report.add(p.item('enctype', 'frequency'))