I have this list:
key,value
1,"1"
1,"2"
1,"3"
2,"1"
2,"2"
2,"3"
2,"4"
2,"5"
3,"1"
3,"2"
3,"3"
How i can merge the value based on having the same key so it become:
key,value
1,"1,2,3"
2,"1,2,3,4,5"
3,"1,2,3"
I'm using this code from Python csv: merge rows with same field but the result is:
1,"1",1,"2",1,"3"
3,"1",3,"2",3,"3"
2,"1",2,"2",2,"3",2,"4",2,"5"