Exemplo n.º 1
0
    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())
        ])
Exemplo n.º 2
0
 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())])