pyarrow.parquet.read_schema

pyarrow.parquet.read_schema(where, memory_map=False)[source]

Read effective Arrow schema from Parquet file metadata.

Parameters
wherestr (file path) or file-like object
memory_mapbool, default False

Create memory map when the source is a file path.

Returns
schemapyarrow.Schema