Data#

Data can be unbinned or binned. If unbinned, the data is stored in a Data object while binned data, or histogram-like data, is stored in a BinnedData object.

The binned data is built closely to the histograms in the boost-histogram and especially Hist libraries and has to and from methods to seamlessly go back and forth between the libraries. Furthermore, BinnedData implements the Unified Histogram Interface, UHI and zfit often expects only an object that implements the UHI.

zfit.data.Data(dataset[, obs, name, ...])

Create a data holder from a dataset used to feed into models.

zfit.data.BinnedData(*, holder)

Create a binned data object from a BinnedHolder.