in Spark Sql by
Q:
How to remove Special character “#” from 100 of columns in DataFrame in Spark?

► Click here to show 1 Answer

0 votes
by
val columns = “#cust_id|#cust_name| #odr_date|   #shipdt|  #Courer| #recvd_dt|#returned or not|#returned dt|#reson of return”

.split(‘|’).map(_.stripMargin(‘#’))

valcreateNewDF = createDF.toDF(columns:_*)
Loan/Mortgage
Learn More with Madanswer

Related questions

...