Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 09:46 AM
You need to use "emptyValue" when writing you data
df.write.csv(PATH, header=True, emptyValue='')
Here is a list of APIs references https://spark.apache.org/docs/latest/sql-data-sources-csv.html