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

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:_*)
Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

+1 vote
asked Feb 14 in Python by SakshiSharma
+1 vote
asked Jun 30, 2019 in Spark Sql by anonymous
0 votes
asked Feb 10 in Python by SakshiSharma
0 votes
asked Mar 14, 2020 in Spark Sql by rajeshsharma
+1 vote
asked Jun 30, 2019 in Spark Sql by anonymous
...