I was wondering if there's any built-in method to find arrays of a ndarray that are contained into another ndarray. i.e.
arr1 = [[1,2], [2,9], [3,7], [5,11], [32,5], [11,4], [89,3], [37,5]]
and
arr2 = [[12,44], [2,9], [125,3], [37,5]]
I would like to know if there's any built-in method to identify that [2,9]
and [37,5]
are the only arrays of arr2
contained into arr1
. Or to identify their indexes.