In my for loop, my code generates a list like this one:
list([0.0,0.0]/sum([0.0,0.0]))
The loop generates all sort of other number vectors but
May be this is what you are looking for...
a = [2,3,np.nan] b = True if True in np.isnan(np.array(a)) else False print(b)