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 : Complete Beginner: Your First Titanic Submission | Kaggle.