โ03-30-2022 12:47 PM
I need to write output of Data Frame to a file with tilde ( ~) separator in Databricks Mount or Storage Mount with VM.
Could you please help with some sample code if you have any?
โ03-30-2022 12:52 PM
@Srinivas Gannavaramโ ,
Does it have to be CSV with fields separated by ~?
If yes is enough to add .option("sep", "~")
(df
.write
.option("sep", "~")
.csv(mount_path))
โ03-30-2022 12:52 PM
@Srinivas Gannavaramโ ,
Does it have to be CSV with fields separated by ~?
If yes is enough to add .option("sep", "~")
(df
.write
.option("sep", "~")
.csv(mount_path))
โ04-06-2022 08:48 AM
Thank you Hubert, It's helpful.
โ04-06-2022 08:56 AM
Hi @Srinivas Gannavaramโ , Great to hear that you got an answer. Would you like to mark @Hubert Dudekโ 's answer as the best?
โ04-04-2022 03:13 AM
Hi @Srinivas Gannavaramโ , How are you? Does the code provided by @Hubert Dudekโ help you?
โ04-06-2022 08:48 AM
Yes, Kaniz
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group