polars_core::utils

Function split_df_as_ref

Source
pub fn split_df_as_ref(
    df: &DataFrame,
    target: usize,
    strict: bool,
) -> Vec<DataFrame>
Expand description

Split a DataFrame in target elements. The target doesn’t have to be respected if not strict. Deviation of the target might be done to create more equal size chunks.

§Panics

if chunks are not aligned