Spec-Zone.ru › Polars

polars.io.csv.batched_reader.BatchedCsvReader.next_batches

BatchedCsvReader.next_batches(
    n: int,
) → list[DataFrame] | None

Считать n пакетов из устройства чтения.

Параметры:
n

Количество фрагментов для получения.

Возвращает:
список DataFrames

Примеры

>>> reader = pl.read_csv_batched(
...     "./pdsh/tables_scale_100/lineitem.tbl",
...     separator="|",
...     try_parse_dates=True,
... )  
>>> reader.next_batches(5)  

© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/api/polars.io.csv.batched_reader.BatchedCsvReader.next_batches.html

Spec-Zone.ru

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