pyarrow.compute.MakeStructOptions

class pyarrow.compute.MakeStructOptions(field_names=(), *, field_nullability=None, field_metadata=None)

Bases: _MakeStructOptions

Options for the make_struct function.

Parameters:
field_namessequence of str

Names of the struct fields to create.

field_nullabilitysequence of bool, optional

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

field_metadatasequence of KeyValueMetadata, 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)

static deserialize(buf)

Deserialize options for a function.

Parameters:
bufBuffer

The buffer containing the data to deserialize.

serialize(self)