File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -413,6 +413,8 @@ function write_csv(
413
413
file:: String ;
414
414
missing_value:: String = " " ,
415
415
append:: Bool = false ,
416
+ delim = " ," ,
417
+ decimal = " ." ,
416
418
col_names:: Bool = true ,
417
419
eol:: String = " \n " ,
418
420
num_threads:: Int = Threads. nthreads ())
@@ -423,6 +425,8 @@ function write_csv(
423
425
x,
424
426
append = append,
425
427
header = col_names && ! append,
428
+ delim = delim,
429
+ decimal = decimal,
426
430
missingstring = missing_value,
427
431
newline = eol,
428
432
threaded = num_threads > 1 )
Original file line number Diff line number Diff line change @@ -199,6 +199,8 @@ Write a DataFrame to a CSV (comma-separated values) file.
199
199
- `x`: The DataFrame to write to the CSV file.
200
200
- `file`: The path to the output CSV file.
201
201
- `missing_value`: = "": The string to represent missing values in the output file. Default is an empty string.
202
+ - `delim`: delimiter for file. can be a character or string. default `,`
203
+ - `decimal`: decimal for file. supports characters only. default `.`
202
204
- `append`: Whether to append to the file if it already exists. Default is false.
203
205
- `col_names`: = true: Whether to write column names as the first line of the file. Default is true.
204
206
- `eol`: The end-of-line character to use in the output file. Default is the newline character.
You can’t perform that action at this time.
0 commit comments