numpy array delete rows with nana code example Example: remove nana from np array x = x[~numpy.isnan(x)]