Saving to single csv
write_single_csv(sdf, path, **csvKwargs)
Writes a single CSV file from a Spark DataFrame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sdf
|
DataFrame
|
The Spark DataFrame to write. |
required |
path
|
str
|
The destination path for the CSV file. |
required |
**csvKwargs
|
Additional keyword arguments to pass to the DataFrame's write.csv method. |
{}
|