Removing elements from an array that are in another array

后端 未结 5 881
抹茶落季
抹茶落季 2020-11-30 04:06

Say I have these 2D arrays A and B.

How can I remove elements from A that are in B. (Complement in set theory: A-B)

A=np.asarray([[1,1,1], [1,1,2], [         


        
5条回答
提交回复
热议问题