df.write using another delimiter code example Example: df.write using another delimiter df.write.option("sep","|").option("header","true").csv(filename)