I have a numpy array:
[5,6,7,6,1,9,10,3,1,6]
I want the same unique array back, but sorted descending in the order of occurrences of the elements. In this example, 6 occurs 3 times, 1 occurs 2 times and all the other elements only occur 1 time, so the result should be:
[6,1,5,10,9,7,3]
Does anyone know how this can be done?
Thanks in advance!