Given the following data array:
d=np.array([10,11,12,13,14])
and another indexing array:
i=np.array([0, 2, 3, 6])
What is a good way of indexing d with i (d[i]) so that instead of index out of bounds error for 6, I would get:
np.array([10, 12, 13])