Preparing the Dataframe for Submission to Kaggle

After predicting “Survived” in the test set of Titanic Dataset, how do I prepare the dataframe for submission to Kaggle?

You can follow this link to continue : https://www.kaggle.com/jlawman/complete-beginner-your-first-titanic-submission.