Created
September 9, 2021 14:33
-
-
Save sgsg704/3b512de625797199c09d17913318a388 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
#assigning values to features as X and target as y | |
X=data.drop(["DEATH_EVENT"],axis=1) | |
y=data["DEATH_EVENT"] | |
#Set up a standard scaler for the features | |
col_names = list(X.columns) | |
s_scaler = preprocessing.StandardScaler() | |
X_df= s_scaler.fit_transform(X) | |
X_df = pd.DataFrame(X_df, columns=col_names) | |
X_df.describe().T |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment