Skip to main content

histogram

Function histogram 

Source
pub fn histogram(
    a: &NdArrowArray,
    edges: &NdArrowArray,
    dim: &str,
) -> Result<NdArrowArray>
Expand description

Count all elements of a per bin, like numpy.histogram with explicit edges.

edges is 1-D and increasing. Bins are half open, [edges[i], edges[i+1]), except the last bin, which includes its right edge. Nulls, NaN and values outside the edges are not counted. The result is Int64 along dim.