I have an object -> {0: 0.8, 1: 0.2, 2: 0, 3: 0}
I want to convert it to a numpy array, where the keys are the index, and the values are the values of the array -> [0.8, 0.2, 0, 0]
Whats the fastest and efficient way of doing this?
I am using a for loop, but is there a better way of doing this?