output_path = f"file:///home/vignesh/Saravana/bundle_apps/final_file/"
(
input_df
.repartition(1)
.write
.format("csv")
.option("header", "true")
.partitionBy("device_type")
.option("delimiter", ",")
.mode("overwrite")
.save(output_path)
)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter