API reference
python:irx:irx.record_batch.RecordBatchStreamWriter.open_csv
method open_csv
open_csv(schema: RecordBatchSchema, path: str | os.PathLike[str], *, delimiter: str = ',', header: bool = True) -> 'RecordBatchStreamWriter'
Source: packages/irx/src/irx/record_batch.py:2030
Create or truncate a local CSV file with an exact batch schema.
Close explicitly to observe final flush errors; writes are not atomic.
Parameters
-
schema — Declared data schema.; Type: RecordBatchSchema
-
path — Path to the input or output resource.; Type: str | os.PathLike[str]
-
delimiter — Delimiter.; Type: str
-
header — Whether to use header.; Type: bool
Returns
Created or truncate a local CSV file with an exact batch schema.; Type: 'RecordBatchStreamWriter'