pub fn chunk_df_for_writing(
df: &mut DataFrame,
row_group_size: usize,
) -> PolarsResult<Cow<'_, DataFrame>>
Expand description
Split DataFrame into chunks in preparation for writing. The chunks have a maximum number of rows per chunk to ensure reasonable memory efficiency when reading the resulting file, and a minimum size per chunk to ensure reasonable performance when writing.