ibis.expr.api.NumericArray.histogram

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

Compute a histogram with fixed width bins

Parameters:

arg : numeric array expression

nbins : int, default None

If supplied, will be used to compute the binwidth

binwidth : number, default None

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

base : number, default None

closed : {‘left’, ‘right’}, default ‘left’

Which side of each interval is closed

Returns:

histogrammed : coded value expression