scipp.binning.make_histogrammed#

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

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 (Variable | DataArray | Dataset) – Input data.

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

  • erase (Iterable[str], default: ()) – Names of dimensions to erase from the input.

Returns:

DataArray | Dataset – 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.