polars.read_ipc_schema

polars.read_ipc_schema(file: Union[str, BinaryIO, pathlib.Path, bytes]) Dict[str, Type[polars.datatypes.DataType]]

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