polars.read_ipc_schema#

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

Get a schema of the IPC file without reading data.

Parameters:
file

Path to a file or a file-like object.

Returns:
Dictionary mapping column names to datatypes