I have two numpy arrays (with different lengths)

The first one is (n) like:

```
a = [0, 1, 2, 5, 6, 7]

```

The second one is (n,3) like:

```
b = [[0, 1, 3],[8, 3, 9],[9, 8, 4],[0, 4, 5],[1, 7, 3],[1, 5, 7],[2, 3, 7],[4, 2, 6],[5, 4, 6],[5, 6, 7]]

```

Now I want to check every column of the second array whether it contains one of the numbers from the first array and return the index of that column if possible.

```
b[0] -> [0, 1, 3] contains 0 and 1 so I need that index (only once)
b[1] -> [8, 3, 9] does not contain any of the numbers from a, so I don't need that index

```

The result shell be an array which contains all those indexes, in this example like:

```
indexes = [0, 3, 4, 5....]

```

Is there a way to check that? Processing speed is not a matter!