polars.read_parquet_schema#

polars.read_parquet_schema(file: str | BinaryIO | pathlib.Path | bytes) dict[str, type[DataType]][source]#

Get a schema of the Parquet file without reading data.

Parameters:
file

Path to a file or a file-like object.

Returns:
Dictionary mapping column names to datatypes