Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #create a dictionary of ride_id and predictions
  2. d = {'ride_id': df_test_set["ride_id"], 'number_of_ticket': test_set_predictions}
  3. df_predictions = pd.DataFrame(data=d)
  4. df_predictions = df_predictions[['ride_id','number_of_ticket']]
  5.  
  6. #create csv file
  7. df_predictions.to_csv('zindi_submission.csv', index=False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement