I have a list of index values. I want to match the index value to the correct information from an np array. How would I do this?
example:
index = [1, -2, -2, 0]
#where -2 values are omitted, not present in array
array = ['grape''purple''lizard', 'apple''red''monkey']
wanted output:
new array = ['apple''red''monkey',-2, -2,'grape''purple''lizard']