pyarrow.parquet.RowGroupMetaData#

class pyarrow.parquet.RowGroupMetaData#

Bases: _Weakrefable

Metadata for a single row group.

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

column(self, int i)

Get column metadata at given index.

equals(self, RowGroupMetaData other)

Return whether the two row group metadata objects are equal.

to_dict(self)

Get dictionary representation of the row group metadata.

Attributes

num_columns

Number of columns in this row group (int).

num_rows

Number of rows in this row group (int).

sorting_columns

Columns the row group is sorted by (tuple of SortingColumn)).

total_byte_size

Total byte size of all the uncompressed column data in this row group (int).

column(self, int i)#

Get column metadata at given index.

Parameters:
iint

Index of column to get metadata for.

Returns:
ColumnChunkMetaData

Metadata for column within this chunk.

equals(self, RowGroupMetaData other)#

Return whether the two row group metadata objects are equal.

Parameters:
otherRowGroupMetaData

Metadata to compare against.

Returns:
are_equalbool
num_columns#

Number of columns in this row group (int).

num_rows#

Number of rows in this row group (int).

sorting_columns#

Columns the row group is sorted by (tuple of SortingColumn)).

to_dict(self)#

Get dictionary representation of the row group metadata.

Returns:
dict

Dictionary with a key for each attribute of this class.

total_byte_size#

Total byte size of all the uncompressed column data in this row group (int).