def assign_index(input_df, index_col='idx'):
    """Return input DataFrame with id col.
    """
    out_df = input_df.reset_index(drop=True)
    out_df.loc[:, (index_col)] = out_df.index
    return out_df
