pyarrow.parquet.read_metadata¶
- pyarrow.parquet.read_metadata(where, memory_map=False, decryption_properties=None)[source]¶
Read FileMetaData from footer of a single Parquet file.
- Parameters:
- Returns:
- metadata
FileMetaData
- metadata
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: 561