I have a dataframe as below:
|id|Test1|Test2|Test3|
|01| 1 | 0 | 0 |
|01| 0 | 1 | 0 |
|01| 0 | 0 | 1 |
|02| 0 | 0 | 0 |
|02| 0 | 1 | 0 |
|02| 0 | 0 | 1 |
and have the output dataframe look like:
|01| 1 | 1 | 1 |
|02| 0 | 1 | 1 |
Is group by on average for each test the best way to approach this?