I encountered a problem when I expected to find the first duplicated items in an array.
For example:
array = [a, b, c, b, b, a, c, a]
returns: [True, True, True, False, False, False, False, False]
I have tried to use the np.unique function but it either returns unique values or returns indices of unique values.
Is there any function that is able to do this?