📜  偏度消除 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:55.887000             🧑  作者: Mango

代码示例1
#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)