I have the following df -
+--------+--------+--------------------+------------+--------------------+----------+----------+
| GameID | TeamID | Team | OpponentID | Opponent | Location | score |
+--------+--------+--------------------+------------+--------------------+----------+----------+
| 1 | 1 | Alabama | 2 | Jacksonville State | H | 1.098633 |
+--------+--------+--------------------+------------+--------------------+----------+----------+
| 1 | 2 | Jacksonville State | 1 | Alabama | V | 0.756562 |
+--------+--------+--------------------+------------+--------------------+----------+----------+
| 2 | 3 | UAB | 4 | Alcorn State | H | 1.270638 |
+--------+--------+--------------------+------------+--------------------+----------+----------+
| 2 | 4 | Alcorn State | 3 | UAB | V | 0.682791 |
+--------+--------+--------------------+------------+--------------------+----------+----------+
Each row represnts one of two teams results from a distinct GameID. My goal is to have a final df that looks like this
+--------+--------+--------------------+------------+--------------------+----------+----------+-----------------+
| GameID | TeamID | Team | OpponentID | Opponent | Location | score | opponents score |
+--------+--------+--------------------+------------+--------------------+----------+----------+-----------------+
| 1 | 1 | Alabama | 2 | Jacksonville State | H | 1.098633 | 0.756562 |
+--------+--------+--------------------+------------+--------------------+----------+----------+-----------------+
| 1 | 2 | Jacksonville State | 1 | Alabama | V | 0.756562 | 1.098633 |
+--------+--------+--------------------+------------+--------------------+----------+----------+-----------------+
| 2 | 3 | UAB | 4 | Alcorn State | H | 1.270638 | 0.682791 |
+--------+--------+--------------------+------------+--------------------+----------+----------+-----------------+
| 2 | 4 | Alcorn State | 3 | UAB | V | 0.682791 | 1.270638 |
+--------+--------+--------------------+------------+--------------------+----------+----------+-----------------+
I am stuck on how to look up values that match criteria with different column names. Thanks!

df.merge(df, left_on=['GameID','TeamID'], right_on=['GameID', 'OpponentID'], how'left')and rename accordingly.