Skip to content

Instantly share code, notes, and snippets.

@curiousily
Created April 1, 2019 21:57
Show Gist options
  • Save curiousily/67e226c8e8327b14e84d707af65f268c to your computer and use it in GitHub Desktop.
Save curiousily/67e226c8e8327b14e84d707af65f268c to your computer and use it in GitHub Desktop.
x = df_train[['OverallQual', 'GrLivArea', 'GarageCars']]
x = (x - x.mean()) / x.std()
x = np.c_[np.ones(x.shape[0]), x]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment