def _to_arrow_schema(cls, row_type): import pyarrow as pa return pa.schema([ pa.field(n, to_arrow_type(t), t._nullable) for n, t in zip(row_type.field_names(), row_type.field_types()) ])
def _to_arrow_schema(row_type): return pa.schema([pa.field(n, to_arrow_type(t), t._nullable) for n, t in zip(row_type.field_names(), row_type.field_types())])