I have a two-column pandas dataframe, and would like to convert the data as follows. Please advise, and thank you!
df in:
column1 column2
a g
a h
b t
b r
b i
b k
b ft
c w
c mm
c n
c qq
df out:
column1 column2
a g, h
b t, r, i, k, ft
c w, mm, n, qq