{
  "id": 414497,
  "title": "Submitting CSV",
  "url": "/competitions/2023-kaggle-ai-report/discussion/414497",
  "author_name": "",
  "post_date": "2023-06-01T22:33:41.492493900Z",
  "votes": null,
  "comment_count": 4,
  "views": 0,
  "content": "<p>I'm working in python and trying to submit. I have my notebook. I click the submit button, which says I have 100 tries each day, name the version, and it runs but the submission always fails--I've changed the way that I create the output over and over again. <br>\nThe errors change as I change the code, but I can't get one to work. The created output always looks like a table; I'm not sure if that is relevant. <br>\nPlease help!<br>\nThe code I'm currently using is below. </p>\n<h1>Creating the Submission</h1>\n<p>submission = ['type, value', \"essay_category, 'AI ethics'\", <br>\n              \"essay_url, 'link'\", <br>\n              \"feeback1_url, 'Placeholder'\", \"feeback2_url, 'Placeholder'\", \"feeback3_url, 'Placeholder'\"]</p>\n<p>with open ('submission.csv', 'w') as submitted_file:<br>\n    for line in submission:<br>\n        submitted_file.write(line)<br>\n        submitted_file.write('\\n')</p>",
  "messages": [
    {
      "id": "2284296",
      "postDate": "06/01/2023 22:33:41",
      "content": "<p>I'm working in python and trying to submit. I have my notebook. I click the submit button, which says I have 100 tries each day, name the version, and it runs but the submission always fails--I've changed the way that I create the output over and over again. <br>\nThe errors change as I change the code, but I can't get one to work. The created output always looks like a table; I'm not sure if that is relevant. <br>\nPlease help!<br>\nThe code I'm currently using is below. </p>\n<h1>Creating the Submission</h1>\n<p>submission = ['type, value', \"essay_category, 'AI ethics'\", <br>\n              \"essay_url, 'link'\", <br>\n              \"feeback1_url, 'Placeholder'\", \"feeback2_url, 'Placeholder'\", \"feeback3_url, 'Placeholder'\"]</p>\n<p>with open ('submission.csv', 'w') as submitted_file:<br>\n    for line in submission:<br>\n        submitted_file.write(line)<br>\n        submitted_file.write('\\n')</p>",
      "rawMarkdown": "I'm working in python and trying to submit. I have my notebook. I click the submit button, which says I have 100 tries each day, name the version, and it runs but the submission always fails--I've changed the way that I create the output over and over again. \nThe errors change as I change the code, but I can't get one to work. The created output always looks like a table; I'm not sure if that is relevant. \nPlease help!\nThe code I'm currently using is below. \n\n\n\n# Creating the Submission\nsubmission = ['type, value', \"essay_category, 'AI ethics'\", \n              \"essay_url, 'link'\", \n              \"feeback1_url, 'Placeholder'\", \"feeback2_url, 'Placeholder'\", \"feeback3_url, 'Placeholder'\"]\n\nwith open ('submission.csv', 'w') as submitted_file:\n    for line in submission:\n        submitted_file.write(line)\n        submitted_file.write('\\n')",
      "votes": null
    },
    {
      "id": "2284323",
      "postDate": "06/01/2023 23:50:59",
      "content": "<p>There is a typo in your submission.csv file. Does it work if you use the <a href=\"https://www.kaggle.com/competitions/2023-kaggle-ai-report/data?select=sample_submission.csv\" target=\"_blank\">sample_submission.csv</a> file instead?</p>\n<p>The most straightforward workflow to get the competition submission to work is likely going to be as follows: (0) download the <a href=\"https://www.kaggle.com/competitions/2023-kaggle-ai-report/data?select=sample_submission.csv\" target=\"_blank\">sample_submission.csv</a> file from the <a href=\"https://www.kaggle.com/competitions/2023-kaggle-ai-report/datahttps://www.kaggle.com/competitions/2023-kaggle-ai-report/data\" target=\"_blank\">./data</a> tab; (1) replace the URLs in <a href=\"https://www.kaggle.com/competitions/2023-kaggle-ai-report/data?select=sample_submission.csv\" target=\"_blank\">sample_submission.csv</a> with your actual URLs; (2) save and rename the file as submission.csv; and then (3) submit your submission.csv file by uploading it into the \"Submit Predictions\" module.</p>\n<p>Hopefully that helps!</p>",
      "rawMarkdown": "There is a typo in your submission.csv file. Does it work if you use the [sample_submission.csv](https://www.kaggle.com/competitions/2023-kaggle-ai-report/data?select=sample_submission.csv) file instead?\n\nThe most straightforward workflow to get the competition submission to work is likely going to be as follows: (0) download the [sample_submission.csv](https://www.kaggle.com/competitions/2023-kaggle-ai-report/data?select=sample_submission.csv) file from the [./data](https://www.kaggle.com/competitions/2023-kaggle-ai-report/datahttps://www.kaggle.com/competitions/2023-kaggle-ai-report/data) tab; (1) replace the URLs in [sample_submission.csv](https://www.kaggle.com/competitions/2023-kaggle-ai-report/data?select=sample_submission.csv) with your actual URLs; (2) save and rename the file as submission.csv; and then (3) submit your submission.csv file by uploading it into the \"Submit Predictions\" module.\n\nHopefully that helps!",
      "votes": null
    },
    {
      "id": "2284337",
      "postDate": "06/02/2023 00:22:39",
      "content": "<p>Thank you for such a fast and detailed response! I don't understand where the typo is (aside from the indents that didn't copy over), but does this mean we don't need to submit from the notebook at all (click the submit button)? We can just upload from our computer to enter the competition?</p>\n<p>As a second question: Is it ok for us to create a second competition notebook? I'm not sure I want to make mine public with so many versions of failed attempts at creating a submittable file. I didn't see any rules about only one notebook per person, but I wanted to be sure.</p>\n<p>This is the first time I really try in a competition, and it is so kind of you to help those of us who are early in our learning journey. Thank you so much. </p>",
      "rawMarkdown": "Thank you for such a fast and detailed response! I don't understand where the typo is (aside from the indents that didn't copy over), but does this mean we don't need to submit from the notebook at all (click the submit button)? We can just upload from our computer to enter the competition?\n\nAs a second question: Is it ok for us to create a second competition notebook? I'm not sure I want to make mine public with so many versions of failed attempts at creating a submittable file. I didn't see any rules about only one notebook per person, but I wanted to be sure.\n\nThis is the first time I really try in a competition, and it is so kind of you to help those of us who are early in our learning journey. Thank you so much.",
      "votes": null
    },
    {
      "id": "2287577",
      "postDate": "06/04/2023 17:04:41",
      "content": "<p>Q1: The typo in your discussion post is in the word \"feedback\". </p>\n<p>Q2: The recommended way to make a submission is to upload a .CSV file into the \"Submit Predictions\" module. The CSV file should contain a link to a public notebook that you authored, along with 3x links to where you provided feedback for your peers.</p>\n<p>Q3: You can create as many notebook as you want but only the most recent submission from your team will be evaluated (each team should write a single essay focusing on a single topic). For more details see <a href=\"https://www.kaggle.com/competitions/2023-kaggle-ai-report/overview/submission-instructions\" target=\"_blank\">https://www.kaggle.com/competitions/2023-kaggle-ai-report/overview/submission-instructions</a>.</p>\n<p>Hopefully that helps!</p>",
      "rawMarkdown": "Q1: The typo in your discussion post is in the word \"feedback\". \n\nQ2: The recommended way to make a submission is to upload a .CSV file into the \"Submit Predictions\" module. The CSV file should contain a link to a public notebook that you authored, along with 3x links to where you provided feedback for your peers.\n\nQ3: You can create as many notebook as you want but only the most recent submission from your team will be evaluated (each team should write a single essay focusing on a single topic). For more details see https://www.kaggle.com/competitions/2023-kaggle-ai-report/overview/submission-instructions.\n\nHopefully that helps!",
      "votes": null
    },
    {
      "id": "2287668",
      "postDate": "06/04/2023 18:53:35",
      "content": "<p>That all helps a ton! The typo (and missing it when I checked) is definitely embarrassing--thanks for pointing that out (I worried it would be something in the simple code I didn't understand). Thank you again for answering my questions and those throughout the discussions.  </p>",
      "rawMarkdown": "That all helps a ton! The typo (and missing it when I checked) is definitely embarrassing--thanks for pointing that out (I worried it would be something in the simple code I didn't understand). Thank you again for answering my questions and those throughout the discussions.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2284323,
      "author_name": "paultimothymooney",
      "author_url": "",
      "post_date": "06/01/2023 23:50:59",
      "content": "<p>There is a typo in your submission.csv file. Does it work if you use the <a href=\"https://www.kaggle.com/competitions/2023-kaggle-ai-report/data?select=sample_submission.csv\" target=\"_blank\">sample_submission.csv</a> file instead?</p>\n<p>The most straightforward workflow to get the competition submission to work is likely going to be as follows: (0) download the <a href=\"https://www.kaggle.com/competitions/2023-kaggle-ai-report/data?select=sample_submission.csv\" target=\"_blank\">sample_submission.csv</a> file from the <a href=\"https://www.kaggle.com/competitions/2023-kaggle-ai-report/datahttps://www.kaggle.com/competitions/2023-kaggle-ai-report/data\" target=\"_blank\">./data</a> tab; (1) replace the URLs in <a href=\"https://www.kaggle.com/competitions/2023-kaggle-ai-report/data?select=sample_submission.csv\" target=\"_blank\">sample_submission.csv</a> with your actual URLs; (2) save and rename the file as submission.csv; and then (3) submit your submission.csv file by uploading it into the \"Submit Predictions\" module.</p>\n<p>Hopefully that helps!</p>",
      "votes": null,
      "replies": [
        {
          "id": 2284337,
          "author_name": "jennifersantiago",
          "author_url": "",
          "post_date": "06/02/2023 00:22:39",
          "content": "<p>Thank you for such a fast and detailed response! I don't understand where the typo is (aside from the indents that didn't copy over), but does this mean we don't need to submit from the notebook at all (click the submit button)? We can just upload from our computer to enter the competition?</p>\n<p>As a second question: Is it ok for us to create a second competition notebook? I'm not sure I want to make mine public with so many versions of failed attempts at creating a submittable file. I didn't see any rules about only one notebook per person, but I wanted to be sure.</p>\n<p>This is the first time I really try in a competition, and it is so kind of you to help those of us who are early in our learning journey. Thank you so much. </p>",
          "votes": null,
          "replies": [
            {
              "id": 2287577,
              "author_name": "paultimothymooney",
              "author_url": "",
              "post_date": "06/04/2023 17:04:41",
              "content": "<p>Q1: The typo in your discussion post is in the word \"feedback\". </p>\n<p>Q2: The recommended way to make a submission is to upload a .CSV file into the \"Submit Predictions\" module. The CSV file should contain a link to a public notebook that you authored, along with 3x links to where you provided feedback for your peers.</p>\n<p>Q3: You can create as many notebook as you want but only the most recent submission from your team will be evaluated (each team should write a single essay focusing on a single topic). For more details see <a href=\"https://www.kaggle.com/competitions/2023-kaggle-ai-report/overview/submission-instructions\" target=\"_blank\">https://www.kaggle.com/competitions/2023-kaggle-ai-report/overview/submission-instructions</a>.</p>\n<p>Hopefully that helps!</p>",
              "votes": null,
              "replies": [
                {
                  "id": 2287668,
                  "author_name": "jennifersantiago",
                  "author_url": "",
                  "post_date": "06/04/2023 18:53:35",
                  "content": "<p>That all helps a ton! The typo (and missing it when I checked) is definitely embarrassing--thanks for pointing that out (I worried it would be something in the simple code I didn't understand). Thank you again for answering my questions and those throughout the discussions.  </p>",
                  "votes": null,
                  "replies": []
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2284296": "I'm working in python and trying to submit. I have my notebook. I click the submit button, which says I have 100 tries each day, name the version, and it runs but the submission always fails--I've changed the way that I create the output over and over again. \nThe errors change as I change the code, but I can't get one to work. The created output always looks like a table; I'm not sure if that is relevant. \nPlease help!\nThe code I'm currently using is below. \n\n\n\n# Creating the Submission\nsubmission = ['type, value', \"essay_category, 'AI ethics'\", \n              \"essay_url, 'link'\", \n              \"feeback1_url, 'Placeholder'\", \"feeback2_url, 'Placeholder'\", \"feeback3_url, 'Placeholder'\"]\n\nwith open ('submission.csv', 'w') as submitted_file:\n    for line in submission:\n        submitted_file.write(line)\n        submitted_file.write('\\n')",
    "2284323": "There is a typo in your submission.csv file. Does it work if you use the [sample_submission.csv](https://www.kaggle.com/competitions/2023-kaggle-ai-report/data?select=sample_submission.csv) file instead?\n\nThe most straightforward workflow to get the competition submission to work is likely going to be as follows: (0) download the [sample_submission.csv](https://www.kaggle.com/competitions/2023-kaggle-ai-report/data?select=sample_submission.csv) file from the [./data](https://www.kaggle.com/competitions/2023-kaggle-ai-report/datahttps://www.kaggle.com/competitions/2023-kaggle-ai-report/data) tab; (1) replace the URLs in [sample_submission.csv](https://www.kaggle.com/competitions/2023-kaggle-ai-report/data?select=sample_submission.csv) with your actual URLs; (2) save and rename the file as submission.csv; and then (3) submit your submission.csv file by uploading it into the \"Submit Predictions\" module.\n\nHopefully that helps!",
    "2284337": "Thank you for such a fast and detailed response! I don't understand where the typo is (aside from the indents that didn't copy over), but does this mean we don't need to submit from the notebook at all (click the submit button)? We can just upload from our computer to enter the competition?\n\nAs a second question: Is it ok for us to create a second competition notebook? I'm not sure I want to make mine public with so many versions of failed attempts at creating a submittable file. I didn't see any rules about only one notebook per person, but I wanted to be sure.\n\nThis is the first time I really try in a competition, and it is so kind of you to help those of us who are early in our learning journey. Thank you so much.",
    "2287577": "Q1: The typo in your discussion post is in the word \"feedback\". \n\nQ2: The recommended way to make a submission is to upload a .CSV file into the \"Submit Predictions\" module. The CSV file should contain a link to a public notebook that you authored, along with 3x links to where you provided feedback for your peers.\n\nQ3: You can create as many notebook as you want but only the most recent submission from your team will be evaluated (each team should write a single essay focusing on a single topic). For more details see https://www.kaggle.com/competitions/2023-kaggle-ai-report/overview/submission-instructions.\n\nHopefully that helps!",
    "2287668": "That all helps a ton! The typo (and missing it when I checked) is definitely embarrassing--thanks for pointing that out (I worried it would be something in the simple code I didn't understand). Thank you again for answering my questions and those throughout the discussions."
  },
  "source": "meta"
}