{
  "id": 378548,
  "title": "I can't save the file 'submission.csv'",
  "url": "/competitions/g-research-crypto-forecasting/discussion/378548",
  "author_name": "",
  "post_date": "2023-01-16T08:42:22.197745100Z",
  "votes": 1,
  "comment_count": 1,
  "views": 0,
  "content": "<p>in writes [Errno 1] Operation not allowed: 'submission.csv'<br>\nTell me how to fix it?</p>",
  "messages": [
    {
      "id": "2101873",
      "postDate": "01/16/2023 08:42:22",
      "content": "<p>in writes [Errno 1] Operation not allowed: 'submission.csv'<br>\nTell me how to fix it?</p>",
      "rawMarkdown": "in writes [Errno 1] Operation not allowed: 'submission.csv'\nTell me how to fix it?",
      "votes": null
    },
    {
      "id": "2102496",
      "postDate": "01/16/2023 16:43:13",
      "content": "<p>Hi bro ! You can see this following code and can change accordingly to your problem . </p>\n<h1>Save the predictions to a CSV file</h1>\n<p>output = pd.DataFrame({'PassengerId': test_df['PassengerId'], 'Survived': y_pred})<br>\noutput.to_csv('submission.csv', index=False)</p>\n<p>here i added only two columns which is required criteria for submission </p>",
      "rawMarkdown": "Hi bro ! You can see this following code and can change accordingly to your problem . \n\n\n# Save the predictions to a CSV file\noutput = pd.DataFrame({'PassengerId': test_df['PassengerId'], 'Survived': y_pred})\noutput.to_csv('submission.csv', index=False)\n\nhere i added only two columns which is required criteria for submission",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2102496,
      "author_name": "amiteshpatel16",
      "author_url": "",
      "post_date": "01/16/2023 16:43:13",
      "content": "<p>Hi bro ! You can see this following code and can change accordingly to your problem . </p>\n<h1>Save the predictions to a CSV file</h1>\n<p>output = pd.DataFrame({'PassengerId': test_df['PassengerId'], 'Survived': y_pred})<br>\noutput.to_csv('submission.csv', index=False)</p>\n<p>here i added only two columns which is required criteria for submission </p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2101873": "in writes [Errno 1] Operation not allowed: 'submission.csv'\nTell me how to fix it?",
    "2102496": "Hi bro ! You can see this following code and can change accordingly to your problem . \n\n\n# Save the predictions to a CSV file\noutput = pd.DataFrame({'PassengerId': test_df['PassengerId'], 'Survived': y_pred})\noutput.to_csv('submission.csv', index=False)\n\nhere i added only two columns which is required criteria for submission"
  },
  "source": "meta"
}