polars.scan_external_reader#
- polars.scan_external_reader(
- reader_builder: FileReaderBuilder,
- *,
- sources: str | Path | IO[bytes] | bytes | list[str] | list[Path] | list[IO[bytes]] | list[bytes],
- schema: Mapping[str, ForwardRef('DataTypeClass') | ForwardRef('DataType')],
- expand_paths: bool = False,
Scan an external reader.
- Parameters:
- reader_builder
The external reader builder.
- sources
The sources to scan.
- schema
The schema of the data.
- expand_paths
Whether to expand provided paths.
- Returns:
- LazyFrame
A lazy frame representing the scanned data.