pandas dataframe create new columns and fill with calculated values from same df,df['A_perc'] = df['A'] / df['sum']