import numpy as np
Let's create a small dataframe to understand the log transformation
df = pd.DataFrame({"d" : [1, 10, 1000]})
df
df['log(10)d'] = np.log10(df['d'])