plots.histogram¶
histogram ¶
histogram(data: DataInput | DataSource, column: str, *, bins: int = 20, title: str | None = None, summary: DataFrame | None = None) -> Figure
Aggregate histogram bin counts lazily without collecting raw values.
Bin edges are computed from Float64 min/max (an approximate numeric representation for very large integers). NaN/infinite values are excluded.
Example¶
figure = ps.plots.histogram(df, 'age', bins=25)
report.add_chart(figure, title='Age distribution')