pyarrow.struct

pyarrow.struct(fields)

Create StructType instance from fields

Parameters:fields (sequence of Field values) –

Examples

import pyarrow as pa
fields = [
    pa.field('f1', pa.int32()),
    pa.field('f2', pa.string())
]
struct_type = pa.struct(fields)
Returns:type (DataType)