How can I replace values in a NumPy array with the index of those values found in another array?

前端 未结 0 1887
时光取名叫无心
时光取名叫无心 2020-12-29 07:30

I have an n*m array "a", and another 1D array "b", such as the following:

a = array([[ 51, 30, 20, 10],
           [ 10, 32, 65, 77],
             


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