Hi,
I have been working on a project at and got stuck on a minor problem; I would like to remove the duplicate codes by adding their corresponding numbers together. I appreciate for the help
| Code | n_ops |
| 112233 | 5 |
| 123456 | 6 |
| 362343 | 8 |
| 123456 | 3 |
| 874531 | 4 |
| 987655 | 5 |
This is the output that I would like (below)
| Code | n_ops |
| 112233 | 5 |
| 123456 | 9 |
| 362343 | 8 |
| 874531 | 4 |
| 987655 | 5 |