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