perform calculation on a column and place result in the same row of new column code example Example: pandas create a calculated column df['A_perc'] = df['A']/df['sum']