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