>>868
>>> np.array([1,2,3,4,5,6,7,8,9])[np.array([2,6,7,9])]
IndexError: index 9 is out of bounds for axis 0 with size 9
>>> np.array([1,2,3,4,5,6,7,8,9])[np.array([2,6,7,0])]
array([3, 7, 8, 1])

numpy で out of bounds 回避する方法知りたいな