I have an array with the following shape
(N, 2) Below is an example of the 2d array I have at hand:
[[0,2]
[0,3]
[1,2]
[1,3]
[1,4]]
I would like to get all the values in the second index that have duplicates. In the example above, I would like to have values 2 and 3 returned.
Is there a specific np function for this sort of task?
It seems like it's the opposite of np.unique but I have yet to find a working function for this problem.