Skip to main content

check_rows_partition

Function check_rows_partition 

Source
fn check_rows_partition(
    groups: &[(GroupKey, Vec<usize>)],
    nrow: usize,
) -> Result<(), DataFrameError>
Expand description

Check that in-range .rows cover each of the frame’s nrow rows exactly once — the shape dplyr always maintains. The first row claimed twice, or else the first row no group claims, is reported.