Spec-Zone.ru › Polars

polars.Config.set_streaming_chunk_size

classmethod Config.set_streaming_chunk_size(
    size: int | None,
) → type[Config]

Overwrite chunk size used in streaming engine.

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.

© 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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API