polars.io.csv.batched_reader.BatchedCsvReader.next_batches
-
Read
nbatches from the reader.- Parameters:
-
- n
-
Number of chunks to fetch.
- Returns:
-
- list of DataFrames
Examples
>>> 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