polars.read_parquet_schema#

polars.read_parquet_schema(source: str | BinaryIO | Path | bytes) dict[str, PolarsDataType][source]#

Get the schema of a Parquet file without reading data.

Parameters:
source

Path to a file or a file-like object.

Returns:
Dictionary mapping column names to datatypes