Numpy 2D-Array - Set values with index array

前端 未结 0 1210
感情败类
感情败类 2021-01-21 06:39

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         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题