#Feature scaling from sklearn.preprocessing import StandardScaler ss=StandardScaler() X_scaled=ss.fit_transform(df) x=pd.DataFrame(data=X_scaled,columns=df.columns