May I ask what is the best way to transpose the rows into columns with multiple fields?
I have a dataframe as below.
val inputDF = Seq( (