numpy remove rows from array contains nans code example Example: numpy remove nan rows a[ ~np.isnan(a).any(axis=1),:]