I went into countless threads (1 2 3...) and still I don\'t find a solution to my problem... I have a dataframe like this:
prop1 prop2 prop3 prop4 L30
Try this, it worked for me perfectly:
df.groupby(['prop1','prop2', 'prop4']).agg(lambda x: ','.join(x.unique())).reset_index()
This will give the result as:
prop1 prop2 prop3 prop4 L30 3,54,11,10 bob,john 11.2,10 K20 12,1,66 travis,leo 10,4