I have a numpy array . I want rescale the elements in the array, so that the smallest number in array is represented by 1, and largest number in array is represented by the number of unique elements in array.
For example
A=[ [2,8,8],[3,4,5] ]
would become
[ [1,5,5],[2,3,4] ]