polars.DataFrame.rechunk

DataFrame.rechunk() polars.internals.frame.DF

Rechunk the data in this DataFrame to a contiguous allocation.

This will make sure all subsequent operations have optimal and predictable performance.