Skip to content

Instantly share code, notes, and snippets.

@wibowotangara
Created January 23, 2024 06:35
Show Gist options
  • Save wibowotangara/c1cd712f307a34c521a2f19b1735263e to your computer and use it in GitHub Desktop.
Save wibowotangara/c1cd712f307a34c521a2f19b1735263e to your computer and use it in GitHub Desktop.
df_reset = df.reset_index(drop=True)
onehot_reset = onehot.reset_index(drop=True)
std_reset = std.reset_index(drop=True)
df_model = pd.concat([onehot_reset, std_reset, df_reset[['loan_label']]], axis=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment