reduce skewness in data code example
Example: skewness removal
#skewness removal
from sklearn.preprocessing import PowerTransformer
pt=PowerTransformer(method='yeo-johnson')
X_power=pt.fit_transform(X)
df=pd.DataFrame(X_power,columns=X.columns)
#skewness removal
from sklearn.preprocessing import PowerTransformer
pt=PowerTransformer(method='yeo-johnson')
X_power=pt.fit_transform(X)
df=pd.DataFrame(X_power,columns=X.columns)