Skip to content

Instantly share code, notes, and snippets.

@sgsg704
Created September 9, 2021 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgsg704/3b512de625797199c09d17913318a388 to your computer and use it in GitHub Desktop.
Save sgsg704/3b512de625797199c09d17913318a388 to your computer and use it in GitHub Desktop.
#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