plots.grouped_frequency¶
grouped_frequency ¶
grouped_frequency(rows: DataFrame, *, title: str, max_groups: int = 20) -> Figure
Plot grouped percentages from a bounded tidy contingency table.
Example¶
rows = ps.stats.crosstab(df, 'enctype', by='cohort')
figure = ps.plots.grouped_frequency(rows, title='Encounters by cohort')