I am trying to manipulate dataframe using select in spark scala. I want to multiply column values by 10 using select but it fails. Also let me know how to perform map, flatmap, reducebykey operations on dataframe using select.
df1.select("Sales"*10,"Profit"*10).show()
df1.select("Sales").map(x=>x*10).show()
Help me to solve this issue! Thanks!