Apply a function to specific rows of a Numpy array

前端 未结 0 1739
孤独总比滥情好
孤独总比滥情好 2021-01-28 00:47

Let\'s say I have a 2 dimensional array, a function, and a "mask" of specific rows, as below:

my_array = np.array([[0,1],[2,3],[4,5],[6,7]])
my_mask = n         


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