how to delete a row from a dataframe in python stackoverflow code example Example: how to delete a row in pandas stack overflow df[df.ID != np.nan]