I am trying to index a numpy array with custom index. I understand that index can only be integers.
Some of the two number pair that I have looks like:
400, 200
300, 100
500, 60
I want to generate unique integers from this pair so that I could use them to index a numpy array. Like,
npArray[400200, 1] = someVal
npArray[300100, 2] = someOtherVal
The problem is, the size of my numpy array is only 4000 * 2. How can I generate unique identifiers from those pairs that falls into this 4000 range?
Thanks in advance.