I have something like this:
fromJobtitle toJobtitle size
0 CEO CEO 65
1 CEO Vice President 23
2 CEO Employee 56
3 Vice President CEO 112
4 Employee CEO 20
I would like to count number of co-occurences so that it combines the double occurences (showing only how many elements there are between the 2)
An example Output:
0 CEO Vice President 135
1 CEO Employee 76
2 CEO CEO 65