polars.io.csv.batched_reader.BatchedCsvReader.next_batches
-
Считать
nпакетов из устройства чтения.- Параметры:
-
- n
-
Количество фрагментов для получения.
- Возвращает:
-
- список DataFrames
Примеры
>>> reader = pl.read_csv_batched( ... "./pdsh/tables_scale_100/lineitem.tbl", ... separator="|", ... try_parse_dates=True, ... ) >>> reader.next_batches(5)
BatchedCsvReader.next_batches(
n: int,
) → list[DataFrame] | None
© 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