Masking numpy arrays to select specific rows, based on another boolean array

前端 未结 0 689
别跟我提以往
别跟我提以往 2021-01-29 10:12

Suppose that I have an array like this:

my_arr = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])

or a 2D array like:

my_arr = np.array([         


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