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