polars.DataFrame.shrink_to_fit
-
Shrink DataFrame memory usage.
Shrinks to fit the exact capacity needed to hold the data.
DataFrame.shrink_to_fit(
*,
in_place: bool = False,
) → DataFrame
© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.shrink_to_fit.html