First loop through Indices to get the row and column index i.e. i0 and i1 respectively and then get the value in A. Use this:
output = np.array([[A[i0][i1]] for i0, i1 in Indices]) Output:
array([[2.3],
[1.4],
[2.5]]) * Be the first to Make Comment