plots.frequency

frequency

frequency(data: DataInput | DataSource, column: str, *, top_n: int = 15, include_null: bool = True, title: str | None = None, counts: DataFrame | None = None) -> Figure

Horizontal bar chart of the most frequent categorical values.

Example

figure = ps.plots.frequency(df, 'enctype')
report.add_chart(figure, title='Encounter types')

← Static plots API