p = np.delete(p, np.where(p[:, 0] < 0)[0], axis=0)