I have a dataset like this
V0 V1 V2
1 A 21
2 A 21
3 B 22
4 C 23
5 C 23
So there are duplicated value in V1; and I would like to create a dataset like this, which sum up V2 but keeping the duplicates in V1:
V0 V1 V2
1 A 42
2 A 42
3 B 22
4 C 46
5 C 46
thanks