Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created March 6, 2019 19:03
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 prateekjoshi565/9d5c61171aa38ae7a935c3c55356680d to your computer and use it in GitHub Desktop.
Save prateekjoshi565/9d5c61171aa38ae7a935c3c55356680d to your computer and use it in GitHub Desktop.
create submission
# prepare submission dataframe
sub = pd.DataFrame({'id':test['id'], 'label':preds_test})
# write predictions to a CSV file
sub.to_csv("sub_lreg.csv", index=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment