I have 3 Numpy Arrays like this :
Name Subject Marks
A Math 89
B Chem 43
A Math 98
B Math 23
A Chem 57
B Math 78
B Math 82
A Chem 71
A Math 36
C Math 89
What I would like to do is to get the average for each of the distinct cases based on columns one and two here, namely : A Math, A Chem, B Math, B Chem, C Math. ( something like the sql: avg(marks) group by name and subject ).
I have tried a lot but in vain, how to do this using only Numpy (any functions can be used) without using Pandas?