-
-
Save AI-MOO/456a7807c69d010656dfd7925c902bf0 to your computer and use it in GitHub Desktop.
This file contains 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
categorical_val.remove('target') | |
dataset = pd.get_dummies(df, columns = categorical_val) | |
from sklearn.preprocessing import StandardScaler | |
s_sc = StandardScaler() | |
col_to_scale = ['age', 'trestbps', 'chol', 'thalach', 'oldpeak'] | |
dataset[col_to_scale] = s_sc.fit_transform(dataset[col_to_scale]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment