I read multiple questions, but do not see a solution or missing something
I have a dataframe
Author_id Article_id Rank
100 10 1
101 10 2
102 10 3
100 11 1
105 11 2
106 11 3
Expected output:
Author_id1 Author_id2 Article_id Rank
100 101 10 1
100 102 10 1
100 105 11 1
100 106 11 1
101 100 10 2
101 102 10 2
102 100 10 3
102 101 10 3
105 100 11 2
105 106 11 2
106 100 11 3
106 105 11 3
If my understanding of the the desired dataset is not correct, please advise on how to restructure this data. Thanks!