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
Name of each field (list of str).
- column(self, i)¶
Return the schema for a single column.
- Parameters:
- i
int
Index of column in schema.
- i
- Returns:
- column_schema
ColumnSchema
- column_schema
- equals(self, ParquetSchema other)¶
Return whether the two schemas are equal.
- Parameters:
- other
ParquetSchema
Schema to compare against.
- other
- Returns:
- are_equalbool
- names¶
Name of each field (list of str).