scipp.binning.make_histogrammed#

scipp.binning.make_histogrammed(x, *, edges)#

Create dense data by histogramming data into given bins.

If the input is binned data, then existing binning dimensions are preserved. Histogramming along an existing binned dimension will replace this binning.

Usually scipp.hist() should be preferred.

Parameters:
  • x – Input data.

  • edges – Bin edges. If these have more than one dimension, binning occurs along the inner dimension.

Returns:

DataArray / Dataset with values equal to the sum of values in each given bin.

See also

scipp.hist

Recommended interface for histogramming data.

scipp.bin

For binning data.