I\'m wondering if there is a better way of assigning values from a numpy array to a 2D numpy array based on an index array.
arr1 = np.array([1, 1, 1]) arr2 = np.a