pyarrow.parquet.read_schema#
- pyarrow.parquet.read_schema(where, memory_map=False, decryption_properties=None)[source]#
Read effective Arrow schema from Parquet file metadata.
- Parameters
- Returns
- schema
pyarrow.Schema
- schema
Examples
>>> import pyarrow as pa >>> import pyarrow.parquet as pq >>> table = pa.table({'n_legs': [4, 5, 100], ... 'animal': ["Dog", "Brittle stars", "Centipede"]}) >>> pq.write_table(table, 'example.parquet')
>>> pq.read_schema('example.parquet') n_legs: int64 animal: string