Removing new line character from spark dataframe column

ShriS1221
New Contributor II

I have to remove new line character from entire column of a dataframe , I tried with regex_replace but its not working.

Help me on this.​

Yeah , thank you .​

AmanSehgal
Honored Contributor III

Could you please provide example of your data and the code you've tried?