Created
July 14, 2018 06:59
-
-
Save ogyalcin/b2a2c6d5bc2396cde58bcdcca19943bb to your computer and use it in GitHub Desktop.
Save the Results to a CSV File
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
results = ids.assign(Survived = predictions) # assign predictions to ids | |
results.to_csv("titanic-results.csv", index=False) # write the final dataset to a csv file. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment