dfr to-csv for dataframe

Saves dataframe to CSV file.

WARNING

Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe flag

Signature

> dfr to-csv {flags} (file)

Flags

  • --delimiter, -d {string}: file delimiter character
  • --no-header, -: Indicates if file doesn't have header

Parameters

  • file: file path to save dataframe

Input/output types:

inputoutput
anyany

Examples

Saves dataframe to CSV file

> [[a b]; [1 2] [3 4]] | dfr into-df | dfr to-csv test.csv

Saves dataframe to CSV file using other delimiter

> [[a b]; [1 2] [3 4]] | dfr into-df | dfr to-csv test.csv --delimiter '|'