pyarrow.parquet.ParquetSchema#

class pyarrow.parquet.ParquetSchema#

Bases: _Weakrefable

A Parquet schema.

__init__(*args, **kwargs)#

方法

__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.

属性

names

Name of each field (list of str).

column(self, i)#

Return the schema for a single column.

参数:
iint

Index of column in schema.

返回:
column_schemaColumnSchema
equals(self, ParquetSchema other)#

Return whether the two schemas are equal.

参数:
otherParquetSchema

Schema to compare against.

返回:
are_equalbool
names#

Name of each field (list of str).

to_arrow_schema(self)#

Convert Parquet schema to effective Arrow schema.

返回:
schemaSchema