Created
April 23, 2020 19:40
-
-
Save curiousily/6c7ef1687ed31b08f7b55eee3d1ef747 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scale_columns = ['x_axis', 'y_axis', 'z_axis'] | |
scaler = RobustScaler() | |
scaler = scaler.fit(df_train[scale_columns]) | |
df_train.loc[:, scale_columns] = scaler.transform( | |
df_train[scale_columns].to_numpy() | |
) | |
df_test.loc[:, scale_columns] = scaler.transform( | |
df_test[scale_columns].to_numpy() | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment