I'm new to python and I have a dataframe table:

```
     I    J   GAI         F
0   660  433  6016  0.000844
1   660  433  6020  0.888889
2   660  434  6016  0.010041
3   661  433  6016  0.021373

```

I want to format this so that to have an output that looks like:

```
660: {433: [[6016,0.000844]], [[6020,0.888889]],
      434: [[6016,0.010041]]}
661: {433: [[6016,0.021373]]}

```

Essentially, the output should be grouped by I and J then write the corresponding GAI/F combinations that go along with it. 

I used df.groupedby(['I','J']) and got the following which was close but not quite there:

```
((660, 433),      I    J   GAI         F
0  660  433  6016  0.000844
1  660  433  6020  0.888889)
((660, 434),      I    J   GAI         F
2  660  434  6016  0.010041)
((661, 433),      I    J   GAI         F
3  661  433  6016  0.021373)

```

Does anyone have a quick fix to my issue? I've been hunting all day online with no such luck.