| Sr. No. | A | B | C |
|---|---|---|---|
| 0 | 84.3 | 18.3 | 1.138420e+00 |
| 1 | 84.3 | 95.8 | 8.501307e |
| 2 | 84.3 | 192.7 | 2.262742e-02 |
| 3 | 84.3 | 617.0 | 5.395847e-01 |
| 4 | 84.3 | 54.0 | 1.484681 |
| 5 | 18.3 | 95.8 | 9.612692e-01 |
| 6 | 18.3 | 192.7 | 9.600000e-01 |
| 7 | 18.3 | 617.0 | 1.706984e |
| 8 | 18.3 | 544.0 | 1.128933e+00 |
| 9 | 95.8 | 52.7 | 6.157143e-01 |
| 10 | 95.8 | 617.0 | 8.880000e+00 |
| 11 | 95.8 | 54.0 | 4.533847e-01 |
| 12 | 192.7 | 617.0 | 5.048742e |
| 13 | 192.7 | 544.0 | 1.838478e-02 |
| 14 | 617.0 | 544.0 | 7.360492e |
e.g. In the table above, I want to take an average of C values from rows 0,5,6,7,8 because all of these rows have 18.3 in some of the columns. Then I want to store this average in another data frame in a row corresponding to '18.3'. Then, I want to take an average of C values from rows 1,5,9,10,11 because all these rows have 95.8 in some of the columns. Then I want to store this average in another data frame in a row corresponding to '95.8'. Similarly, I want to repeat this operation for each unique value that appears in columns A and B. I am unable to figure out a way to do this. Any hits will be helpful!