Hi,
Let's say I have a csv file like such:-
part,text,true,quantity
371336959,-New DDM Part-,Y,1
449127604,-New DDM Part-,Y,1
808635064,-New DDM Part-,Y,2
189657,-New DDM Part-,Y,2
319330767,-New DDM Part-,Y,1
371336959,-New DDM Part-,Y,1
189657,-New DDM Part-,Y,1
Now I want to remove duplicate parts and add the quantities together whilst PRESERVING THE ORIGINAL ORDER so that it becomes:
371336959,-New DDM Part-,Y,2
449127604,-New DDM Part-,Y,1
808635064,-New DDM Part-,Y,2
189657,-New DDM Part-,Y,3
319330767,-New DDM Part-,Y,1
.
What is the best way to achieve this?
Code snippets or full code is appreciated!