Answers for "standard scaler on dataframe"

3

standardscaler into df data frame pandas

scaled_features = StandardScaler().fit_transform(df.values)
scaled_features_df = pd.DataFrame(scaled_features, index=df.index, columns=df.columns)
Posted by: Guest on May-14-2020
0

pandas standardscaler

from sklearn.preprocessing import StandardScaler
scaler = StandardScaler()
X_train = scaler.fit_transform(X_train)
Posted by: Guest on June-29-2021

Code answers related to "standard scaler on dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language