I need to merge multiple columns of a data frame into one single column as below in pyspark. I am new to pyspark.
Dataframe input and output
These columns were actually key value pairs(10,20,30) at the source and I tried to explode but I am getting 'Column' object is not callable. The existing logic splits the column as mentioned above in the input data frame and hence wanted to proceed with the same.
