Skip to content

pysparky.io.csv

Functions

NameDescription
write_single_csvWrites 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

NameTypeDefaultDescription
sdfDataFramerequiredThe Spark DataFrame to write.
pathstrrequiredThe destination path for the CSV file.
**csvKwargs{}Additional keyword arguments to pass to the DataFrame’s write.csv method.