Skip to main content

digitize

Function digitize 

Source
pub fn digitize(
    a: &NdArrowArray,
    bins: &NdArrowArray,
    right: bool,
) -> Result<NdArrowArray>
Expand description

The bin of each element for increasing bins edges, like numpy.digitize.

With right == false, element x gets i where bins[i-1] <= x < bins[i]. The result is UInt64 with the dimensions of a.