I have the following Data frame:
destiny origin Count
1 KJFK SBBR 4
2 KJFK SAEZ 4683
3 SBGL KJFK 2
4 SBBR KJFK 2
5 KJFK SBGL 4987
6 KJFK SBGR 12911
...
As I'm interesting in the route, for me KJFK -> SBBR is the same as SBBR -> KJFK. So I want to sum their count, as the table below
destiny origin Count
1 KJFK SBBR 6
2 KJFK SAEZ 4683
3 SBGL KJFK 4989
4 KJFK SBGR 12911
...
I did't want to use a big for loop to evaluate all the values