mirror of
https://github.com/nushell/nushell
synced 2024-12-29 06:23:11 +00:00
c0a1d18e3d
* feat: update #4455, regenerate commands' docs * chore: update make_docs script
29 lines
558 B
Markdown
29 lines
558 B
Markdown
---
|
|
title: dfr to-csv
|
|
layout: command
|
|
version: 0.59.0
|
|
---
|
|
|
|
Saves dataframe to csv file
|
|
|
|
## Signature
|
|
|
|
```> dfr to-csv (file) --delimiter --no-header```
|
|
|
|
## Parameters
|
|
|
|
- `file`: file path to save dataframe
|
|
- `--delimiter {string}`: file delimiter character
|
|
- `--no-header`: Indicates if file doesn't have header
|
|
|
|
## Examples
|
|
|
|
Saves dataframe to csv file
|
|
```shell
|
|
> [[a b]; [1 2] [3 4]] | dfr to-df | dfr to-csv test.csv
|
|
```
|
|
|
|
Saves dataframe to csv file using other delimiter
|
|
```shell
|
|
> [[a b]; [1 2] [3 4]] | dfr to-df | dfr to-csv test.csv -d '|'
|
|
```
|