I have a pandas data frame like this:
Col1 Col2
0 a Jack
1 a Jill
2 b Bob
3 c Cain
4 c Sam
5 a Adam
6 b Abel
What I want to do now is combine values in column 2 for each value in column 1, ie, output should be like this:
Col1 Col2
0 a Jack, Jill, Adam
1 b Bob, Abel
2 c Cain, Sam
How can I best approach this problem? Any advice would be helpful. Thanks in advance!