intent: pandas dataframe create new columns and fill with calculated values from same df
rewritten_intent: create new column `A_perc` in dataframe `df` with row values equal to the value in column `A` divided by the value in column `sum`
snippet: df['A_perc'] = df['A'] / df['sum']