pyarrow.schema¶
- pyarrow.schema(fields, metadata=None)¶
Construct pyarrow.Schema from collection of fields.
- Parameters:
- Returns:
- schema
pyarrow.Schema
- schema
Examples
>>> import pyarrow as pa >>> pa.schema([ ... ('some_int', pa.int32()), ... ('some_string', pa.string()) ... ]) some_int: int32 some_string: string >>> pa.schema([ ... pa.field('some_int', pa.int32()), ... pa.field('some_string', pa.string()) ... ]) some_int: int32 some_string: string