Skip to content

renderFrameAsCsv

renderFrameAsCsv(frame, options?): string

Defined in: packages/format-csv/src/render-frame-as-csv.ts:35

Renders a DataFrame as RFC 4180 CSV: one line per row, one column per field, in the frame’s own field order.

Cells go through their field’s own formatter, so precision matches every other rendering of the same frame — but digit grouping is disabled and the locale defaults to a machine-neutral one, since a reader of this file is a parser rather than a person. Pass locale to override. Frame metadata has no CSV form and is dropped.

DataFrame

CsvOptions

string