Skip to main content

bincount

Function bincount 

Source
pub fn bincount(
    a: &NdArrowArray,
    weights: Option<&NdArrowArray>,
    min_length: usize,
    dim: &str,
) -> Result<NdArrowArray>
Expand description

Count each non-negative integer value, like numpy.bincount.

With weights (same dimensions as a), sums the weights instead and returns Float64. The result has at least min_length positions along dim. Null values are not counted. Negative values are an error.