LazyFrame.to_arrow
to_arrow
Convert the relation to an Arrow Table or RecordBatch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
batch_size
|
int | None
|
The size of each RecordBatch. If None, returns an Arrow Table. |
None
|
Returns:
| Type | Description |
|---|---|
Union[Table, RecordBatch]
|
pa.Table or pa.RecordBatch: The Arrow representation of the data. |