how to efficiently filter a numpy array so that it contains rows contained in a second array

后端 未结 0 1574
粉色の甜心
粉色の甜心 2021-02-02 07:25

eg. In reality, a has 100s thousands of rows

a = array([[0, 0, 0, 0, 0],
       [1, 0, 0, 0, 0],
       [1, 1, 0, 0, 1],
       [1, 1, 0, 0, 0],
         


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