W3cubDocs

/Nushell

dfr to-csv for dataframe

Saves dataframe to CSV file.

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:

input output
any any

Examples

Saves dataframe to CSV file

> [[ab]; [12] [34]] |dfr into-df|dfr to-csvtest.csv

Saves dataframe to CSV file using other delimiter

> [[ab]; [12] [34]] |dfr into-df|dfr to-csvtest.csv-d'|'

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

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/dfr_to-csv.html