Using solution from post : https://stackoverflow.com/questions/29284929/rejecting-zero-values-when-creating-a-list-of-minimum-values-python-field-calc
My goal is to populate my "least" column with the minimum value of 4 "time" columns and to exclude zeroes when calculating.The "least" column format is double and my "time" column format is long integer.
This code seems to work for others but not for my table, I've spent a whole day on this and can't find the culprit.
Here is my pre-logic script code:
def my_min(time, time_1):
lst = [time, time_1]
return min([x for x in lst if x !=0])