I have a spark dataframe with two columns I need to fetch unique values from first columns and concat the values of other columns
for ex: enter image description here
I wanted output as below: enter image description here
how to achieve this using spark dataframe?