| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/../generated/pyarrow.parquet.read_schema.html | [Back] [Original] |
Section Navigation
Read effective Arrow schema from Parquet file metadata.
str (file path) or file-like objectFalseCreate memory map when the source is a file path.
FileDecryptionProperties, default NoneDecryption properties for reading encrypted Parquet files.
FileSystem, default NoneIf nothing passed, will be inferred based on path. Path will try to be found in the local on-disk filesystem otherwise it will be parsed as an URI to determine the filesystem.
TrueIf True, read Parquet logical types as Arrow extension types where possible (e.g., UUID as the canonical arrow.uuid extension type).
pyarrow.SchemaThe schema of the Parquet file
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
Copyright 2016-2026 Apache Software Foundation.
Apache Arrow, Arrow, Apache, the Apache logo, and the Apache Arrow project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.
Created using Sphinx 9.1.0.
Built with the PyData Sphinx Theme 0.20.0.
| Web Proxy Viewer | New URL | Original Page |