val keyValue = parsedData.map(x => (x.col1,x.col2,
if(x.col3 = "a") "0.1"
else if(x.col3 = "b") "0.2"
else if(x.col3 = "c") "0.3"
else if(x.col3 = "d") "0.4"
else if(x.col3 = "e") "0.5"))
My parsedData rdd has 3 columns and for my third column i am trying to do the above, and you might have guessed its not working.
Any ideas how to implement this ?