Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2021 02:45 PM
Would pyspark.sql.DataFrameWriter.csv work? You could specify the separator (sep) as tab
df.write.csv(os.path.join(tempfile.mkdtemp(), 'data'))