I have Spark 2.1. My Spark Dataframe is as follows:
COLUMN VALUE
Column-1 value-1
Column-2 value-2
Column-3 value-3
Column-4 value-4
Column-5 value-5
I have to transpose these column & values. It should be look like:
Column-1 Column-2 Column-3 Column-4 Column-5
value-1 value-2 value-3 value-4 value-5
Can anyone help me out with this? Preferably in Scala