polars.Config.set_streaming_chunk_size
-
Overwrite chunk size used in
streamingengine.By default, the chunk size is determined by the schema and size of the thread pool. For some datasets (esp. when you have large string elements) this can be too optimistic and lead to Out of Memory errors.
- Parameters:
-
- size
-
Number of rows per chunk. Every thread will process chunks of this size.
classmethod Config.set_streaming_chunk_size(
size: int | None,
) → type[Config]
© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/api/polars.Config.set_streaming_chunk_size.html