So I have a dataframe that contains data for experiments with different hyper parameters and a special value called repeat_id
which we have to run in order to find statistical significance. I'm basically trying to compute the average of any other recorded value over the different repeat_id
. This is different that the standard GroupBy.mean which computes mean within a group, here I need something like mean across groups. Example:
repeat_id variant measuerment_0 measuerment_1 ... measuerment_n
0 0 'A' 0.0 1.0 2.0
1 1 'A' 0.2 0.4 0.6
2 0 'B' 0.1 1.1 2.1
3 1 'B' 0.3 0.5 0.7
Expected output:
variant measuerment_0 measuerment_1 ... measuerment_n
0 'A' 0.1 0.7 1.3
1 'B' 0.2 0.8 1.4