polars.io.external_reader.FileReader#
- class polars.io.external_reader.FileReader[source]#
File reader implementation.
Warning
This functionality is considered unstable. It may be changed at any point without it being considered a breaking change.
- __init__(*args, **kwargs)#
Methods
__init__(*args, **kwargs)collect_batches(*, columns, row_index, ...)Create an iterator that yields DataFrame chunks of the file with the requested parameters.
fetch_metadata()Fetch file metadata.
initialize_serial()Initializer called serially, in order for each reader when reading from a files list.
n_rows_in_file([limit])Return the number of rows in the file.
on_drop()Called when this reader is dropped.
schema()Get the schema of the columns contained in the file.