Skip to content

Instantly share code, notes, and snippets.

@MariaLavrovskaya
Created October 15, 2019 06:55
Show Gist options
  • Save MariaLavrovskaya/f5118def93fd4f40803f2ded31296df3 to your computer and use it in GitHub Desktop.
Save MariaLavrovskaya/f5118def93fd4f40803f2ded31296df3 to your computer and use it in GitHub Desktop.
airbnb_18
#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