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