I realise similar has been posted before 1, 2, 3
but I have tried these and they have not worked.
I have a single csv file with two columns similar to this:
james,phone1
james,phone2
james,phone3
paul,phone1
jackie,phone1
jackie,phone2
jackie,phone3
etc
I want to merge all the duplicates in column 1 using python to get something like:
james,phone1,phone2,phone3
paul,phone1
jackie,phone1,phone2,phone3
What would be the best way of doing this?
Any help would be greatly appreciated.