Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2022 03:57 PM
You can use coalesce(1) for example:
df.coalesce(1).write.option("header","true").csv("path_to_save_your_CSV")