pyarrow.parquet.ParquetSchema

class pyarrow.parquet.ParquetSchema

Bases: _Weakrefable

A Parquet schema.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

column(self, i)

Return the schema for a single column.

equals(self, ParquetSchema other)

Return whether the two schemas are equal.

to_arrow_schema(self)

Convert Parquet schema to effective Arrow schema.

Attributes

names

Name of each field (list of str).

column(self, i)

Return the schema for a single column.

Parameters:
iint

Index of column in schema.

Returns:
column_schemaColumnSchema
equals(self, ParquetSchema other)

Return whether the two schemas are equal.

Parameters:
otherParquetSchema

Schema to compare against.

Returns:
are_equalbool
names

Name of each field (list of str).

to_arrow_schema(self)

Convert Parquet schema to effective Arrow schema.

Returns:
schemaSchema