I have a dataset like this:
ID Name
1 a
1 b
1 2
1 3
2 er
2 get
2 better
3 123
3 cold
3 warm
3 sweet
3 heat
and I want to group together this data such that data column "name" having same "id" is merged together using a delimiter. Something like this:
ID Name
1 a,b,2,3
2 er,get,better
3 123,cold,warm,sweet,heat
and so on.
Can anyone provide me a pythonic way of doing this?