I have an array of values, said
v=[1,2,3,4,5,6,7,8,9,10]) and an array of indexes, say
I know, for instance, how to take the first element of each group, in a very numpythonic way, doing:
import numpy as np
array([1, 74, 9])
Is there any
numpythonic way (avoiding explicit loops) to get the maximum of each subset?