Answers for "numpy scaled to dataframe with column names"

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

Code answers related to "numpy scaled to dataframe with column names"

Python Answers by Framework

Browse Popular Code Answers by Language