Having some skewed features as shown in the following figure. I am trying to imply log transformation to the feature called
vBMD(mgHA/cm3). I run the following codes
import numpy as np
import pandas as pd
from sklearn.preprocessing import MinMaxScaler
df['vBMD (mgHA/cm3)']=scaler.fit_transform(np.array(df['vBMD (mgHA/cm3)']).reshape(-1,1))
df['vBMD (mgHA/cm3)']=np.log(np.array(df['vBMD (mgHA/cm3)']))
While I am waiting that the feature will be normalized, its skewness increased. Thus, what am I doing wrong?