I need to find the Index of an 2D array, where the first Column equals 0.1. So something like this:
Data = [[0, 1], [0.075, 1], [0.1, 1], [0.11, 1], [0.125, 1]]
print(np.where(Data[:,0] == 0.1))
But then I get the following Error:
TypeError: list indices must be integers or slices, not tuple
Would be great if somebody could help me :)
Data[:][0]or convert tonp.array(Data)and then use commas(array([2], dtype=int64),). But I need the index fordata_origin_y = data[0:np.where(data[:,0]-data[0,0] == 0.1), 1]