how to ignore nan values in python code example Example: how to delete nan values in python x = x[~numpy.isnan(x)]