Created
October 15, 2019 06:55
-
-
Save MariaLavrovskaya/f5118def93fd4f40803f2ded31296df3 to your computer and use it in GitHub Desktop.
airbnb_18
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
#Treating continous variables with Standart Scaler | |
columns_to_scale = np.array(df_1['runtime']) | |
#Initiate Scaler: | |
scaler = StandardScaler() | |
scaled_columns = scaler.fit_transform(columns_to_scale[:, np.newaxis]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment