# log transfrom column 'colA' and re-add to dataframe as new column 'colA_log' import numpy as np df['colA_log'] = np.log(df['colA'])