removing nan values from a python list,cleanlist = [(0.0 if math.isnan(x) else x) for x in oldlist]