| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/../generated/pyarrow.parquet.read_metadata.html | [Back] [Original] |
Section Navigation
Read FileMetaData from footer of a single Parquet file.
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). If False, use the underlying storage types instead.
FileMetaDataThe metadata 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_metadata('example.parquet')
<pyarrow._parquet.FileMetaData object at ...>
created_by: parquet-cpp-arrow version ...
num_columns: 2
num_rows: 3
num_row_groups: 1
format_version: 2.6
serialized_size: ...
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 |