tables.fromcsv.md
June 23, 2023 ยท View on GitHub
Home > @datashaper/tables > fromCSV
fromCSV() function
Drop-in replacement for arquero fromCSV, using our internal parsing with auto-typing turned on. Meant for quick-and-dirty reads, with the advantage that our default parsing aligns with pandas. Use readTable for more control over schema options and formats.
Signature:
export declare function fromCSV(text: string, options?: CSVParseOptions): Promise<ColumnTable>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| text | string | |
| options | CSVParseOptions | (Optional) |
Returns:
Promise<ColumnTable>