scipp.bins_like#
- scipp.bins_like(x, fill_value)#
Create a binned variable by “broadcasting” fill values to bins of given sizes.
The dimensions and shape of
fill_valuemust be such that they can be broadcast to those ofx. Each element offill_valuedefines the values of all the bin elements of the corresponding bin. The output shares the bin indices ofx.