pyarrow.compute.make_struct

pyarrow.compute.make_struct(*args, memory_pool=None, options=None, field_names, field_nullability=None, field_metadata=None)

Wrap Arrays into a StructArray.

Names of the StructArray’s fields are specified through MakeStructOptions.

Parameters
  • *args (Array-like or scalar-like) – Argument to compute function

  • memory_pool (pyarrow.MemoryPool, optional) – If not passed, will allocate memory from the default memory pool.

  • options (pyarrow.compute.MakeStructOptions, optional) – Parameters altering compute function semantics.

  • field_names (optional) – Parameter for MakeStructOptions constructor. Either options or field_names can be passed, but not both at the same time.

  • field_nullability (optional) – Parameter for MakeStructOptions constructor. Either options or field_nullability can be passed, but not both at the same time.

  • field_metadata (optional) – Parameter for MakeStructOptions constructor. Either options or field_metadata can be passed, but not both at the same time.