def _rename(dataframe):
    """Rename columns or reindex to make sense after deletion or addition of a
    new line."""

    dataframe = dataframe.reset_index(drop=True)
    dataframe.columns = (i for i, _ in enumerate(dataframe.columns))
    return dataframe