Skip to main content

partition_indices

Function partition_indices 

Source
pub fn partition_indices(data: &Array2<f64>) -> Vec<Vec<usize>>
Expand description

Partition the rows of data (indexed as data[row][col]) into groups that share the same combination of column values.

Returns indices[partition][i], where each inner Vec holds the row indices that belong to that partition. The order of partitions and the order of indices within a partition are both unspecified.