I am looking to find the lowest positive value in an array and its position in the list. If a value within the list is duplicated, only the FIRST instance is of interest. This i
import numpy as np x = np.array([1,2,0,5,10]) x = np.extract(x>0,x) min_index = np.amin(x) min_value = np.argmin(x)