ibis.expr.api.NumericColumn.histogram

NumericColumn.histogram(arg, nbins=None, binwidth=None, base=None, closed='left', aux_hash=None)

Compute a histogram with fixed width bins

Parameters
argnumeric array expression
nbinsint, default None

If supplied, will be used to compute the binwidth

binwidthnumber, default None

If not supplied, computed from the data (actual max and min values)

basenumber, default None
closed{‘left’, ‘right’}, default ‘left’

Which side of each interval is closed

Returns
histogrammedcoded value expression