Hi,

I have data as follows:

A, 2015, 4
A, 2014, 12
A, 2013, 1
B, 2015, 24
B, 2013 4


I need to convert the data to a new format:
A ,    4,    12,    1
B,   24,        ,    4

Any idea how to make it in Spark Scala?

Thanks

Reply via email to