def author_percentile_of_total(df):
    """Generates % of total commits by author name

    """

    total = df['commits']/df['commits'].sum()
    df['percentage_total'] = total.values.round(2)
    return df