pyarrow.compute.MakeStructOptions#

classpyarrow.compute.MakeStructOptions(field_names=(),*,field_nullability=None,field_metadata=None)#

Bases:_MakeStructOptions

Options for themake_struct function.

Parameters:
field_namessequence ofstr

Names of the struct fields to create.

field_nullabilitysequence ofbool, optional

Nullability information for each struct field.If omitted, all fields are nullable.

field_metadatasequence ofKeyValueMetadata, optional

Metadata for each struct field.

__init__(self,field_names=(),*,field_nullability=None,field_metadata=None)#

Methods

__init__(self[, field_names, ...])

deserialize(buf)

Deserialize options for a function.

serialize(self)

staticdeserialize(buf)#

Deserialize options for a function.

Parameters:
bufBuffer

The buffer containing the data to deserialize.

serialize(self)#