pyarrow.parquet.ParquetLogicalType

class pyarrow.parquet.ParquetLogicalType

Bases: _Weakrefable

Logical type of parquet type.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

to_json(self)

Get a JSON string containing type and type parameters.

Attributes

type

Name of the logical type (str).

to_json(self)

Get a JSON string containing type and type parameters.

Returns:
jsonstr

JSON representation of type, with at least a field called ‘Type’ which contains the type name. If the type is parameterized, such as a decimal with scale and precision, will contain those as fields as well.

type

Name of the logical type (str).