So, I have been browsing stackoverflow for quite some time now, but I can\'t seem to find the solution for my problem
Consider this
import numpy as n
You can use where:
where
>>> values[np.where((coo == [1, 2]).all(1))].mean() 1.0