hist.namedhist module#

class hist.namedhist.NamedHist(*args: Any, **kwargs: Any)#

Bases: hist.basehist.BaseHist

fill(weight: ArrayLike | None = None, sample: ArrayLike | None = None, threads: int | None = None, **kwargs: ArrayLike) T#

Insert data into the histogram using names and return a NamedHist object. NamedHist could only be filled by names.

project(*args: int | str) T | float | bh.accumulators.Accumulator#

Projection of axis idx.