{
  "id": 340880,
  "title": "Submission status: Submission Scoring Error",
  "url": "/competitions/AI4Code/discussion/340880",
  "author_name": "",
  "post_date": "2022-07-31T11:36:33.330827300Z",
  "votes": 2,
  "comment_count": 4,
  "views": 0,
  "content": "<p>Hi everyone,</p>\n<p>This is the second time i got this error and really i don't know the actual reason.</p>\n<p>My 'submission.csv' is in the same format as given in the 'sample_submission.csv' file.</p>\n<p>Does anyone know if there are other reasons for this submission status???</p>",
  "messages": [
    {
      "id": "1878364",
      "postDate": "07/31/2022 11:36:33",
      "content": "<p>Hi everyone,</p>\n<p>This is the second time i got this error and really i don't know the actual reason.</p>\n<p>My 'submission.csv' is in the same format as given in the 'sample_submission.csv' file.</p>\n<p>Does anyone know if there are other reasons for this submission status???</p>",
      "rawMarkdown": "Hi everyone,\n\nThis is the second time i got this error and really i don't know the actual reason.\n\nMy 'submission.csv' is in the same format as given in the 'sample_submission.csv' file.\n\nDoes anyone know if there are other reasons for this submission status???",
      "votes": null
    },
    {
      "id": "1879224",
      "postDate": "07/31/2022 23:35:54",
      "content": "<p>It is specified as a competition requirement. It is not a matter of file format.</p>\n<p>Submission file must be named <strong>submission.csv</strong></p>",
      "rawMarkdown": "It is specified as a competition requirement. It is not a matter of file format.\n\nSubmission file must be named **submission.csv**",
      "votes": null
    },
    {
      "id": "1879605",
      "postDate": "08/01/2022 06:50:44",
      "content": "<p>You can check the errors here: <a href=\"https://www.kaggle.com/code-competition-debugging\" target=\"_blank\">https://www.kaggle.com/code-competition-debugging</a></p>\n<blockquote>\n  <p>Submission Scoring Error: Your notebook generated a submission file with incorrect format. Some examples causing this are: wrong number of rows or columns, empty values, an incorrect data type for a value, or invalid submission values from what is expected.</p>\n</blockquote>",
      "rawMarkdown": "You can check the errors here: https://www.kaggle.com/code-competition-debugging\n> Submission Scoring Error: Your notebook generated a submission file with incorrect format. Some examples causing this are: wrong number of rows or columns, empty values, an incorrect data type for a value, or invalid submission values from what is expected.",
      "votes": null
    },
    {
      "id": "1881007",
      "postDate": "08/02/2022 07:24:06",
      "content": "<p>Finally worked, but don't know why!!</p>\n<p>The wrong submission was: </p>\n<pre><code>lst = []\nfor  file in test_files:\n    try:\n        id_ = file.split('.')[0]\n        result = rank_cells(test_dir + '/' + file)\n        to_add = ' '.join(result)\n        lst.append({'id':id_, 'cell_order':to_add})        \ndf_result = pd.DataFrame(lst)\ndf_result.to_csv('submission.csv', index = False)\n</code></pre>\n<p>And the accepted on is :</p>\n<pre><code>df_result = pd.DataFrame(columns = ['id', 'cell_order'])\nfor  file in test_files:\n    try:\n        id_ = file.split('.')[0]\n        result = rank_cells(test_dir + '/' + file)\n        to_add = ' '.join(result)\n        df_result = df_result.append({'id':id_, 'cell_order':to_add}, ignore_index=True)\ndf_result.to_csv('submission.csv', index = False)\n</code></pre>",
      "rawMarkdown": "Finally worked, but don't know why!!\n\nThe wrong submission was: \n\n\n\n```\nlst = []\nfor  file in test_files:\n    try:\n        id_ = file.split('.')[0]\n        result = rank_cells(test_dir + '/' + file)\n        to_add = ' '.join(result)\n        lst.append({'id':id_, 'cell_order':to_add})        \ndf_result = pd.DataFrame(lst)\ndf_result.to_csv('submission.csv', index = False)\n```\n\nAnd the accepted on is :\n\n\n\n\n```\ndf_result = pd.DataFrame(columns = ['id', 'cell_order'])\nfor  file in test_files:\n    try:\n        id_ = file.split('.')[0]\n        result = rank_cells(test_dir + '/' + file)\n        to_add = ' '.join(result)\n        df_result = df_result.append({'id':id_, 'cell_order':to_add}, ignore_index=True)\ndf_result.to_csv('submission.csv', index = False)\n```",
      "votes": null
    },
    {
      "id": "1888705",
      "postDate": "08/07/2022 18:24:21",
      "content": "<p>Double check that your submission file is in the correct format per the sample submission file. If that is all correct, then unfortunately errors sometimes occurs on Kaggle and there is not much you can do about it except submit again..</p>",
      "rawMarkdown": "Double check that your submission file is in the correct format per the sample submission file. If that is all correct, then unfortunately errors sometimes occurs on Kaggle and there is not much you can do about it except submit again..",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1879224,
      "author_name": "heuingttiang",
      "author_url": "",
      "post_date": "07/31/2022 23:35:54",
      "content": "<p>It is specified as a competition requirement. It is not a matter of file format.</p>\n<p>Submission file must be named <strong>submission.csv</strong></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1879605,
      "author_name": "claree007",
      "author_url": "",
      "post_date": "08/01/2022 06:50:44",
      "content": "<p>You can check the errors here: <a href=\"https://www.kaggle.com/code-competition-debugging\" target=\"_blank\">https://www.kaggle.com/code-competition-debugging</a></p>\n<blockquote>\n  <p>Submission Scoring Error: Your notebook generated a submission file with incorrect format. Some examples causing this are: wrong number of rows or columns, empty values, an incorrect data type for a value, or invalid submission values from what is expected.</p>\n</blockquote>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1881007,
      "author_name": "ayman3000",
      "author_url": "",
      "post_date": "08/02/2022 07:24:06",
      "content": "<p>Finally worked, but don't know why!!</p>\n<p>The wrong submission was: </p>\n<pre><code>lst = []\nfor  file in test_files:\n    try:\n        id_ = file.split('.')[0]\n        result = rank_cells(test_dir + '/' + file)\n        to_add = ' '.join(result)\n        lst.append({'id':id_, 'cell_order':to_add})        \ndf_result = pd.DataFrame(lst)\ndf_result.to_csv('submission.csv', index = False)\n</code></pre>\n<p>And the accepted on is :</p>\n<pre><code>df_result = pd.DataFrame(columns = ['id', 'cell_order'])\nfor  file in test_files:\n    try:\n        id_ = file.split('.')[0]\n        result = rank_cells(test_dir + '/' + file)\n        to_add = ' '.join(result)\n        df_result = df_result.append({'id':id_, 'cell_order':to_add}, ignore_index=True)\ndf_result.to_csv('submission.csv', index = False)\n</code></pre>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1888705,
      "author_name": "thedevastator",
      "author_url": "",
      "post_date": "08/07/2022 18:24:21",
      "content": "<p>Double check that your submission file is in the correct format per the sample submission file. If that is all correct, then unfortunately errors sometimes occurs on Kaggle and there is not much you can do about it except submit again..</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1878364": "Hi everyone,\n\nThis is the second time i got this error and really i don't know the actual reason.\n\nMy 'submission.csv' is in the same format as given in the 'sample_submission.csv' file.\n\nDoes anyone know if there are other reasons for this submission status???",
    "1879224": "It is specified as a competition requirement. It is not a matter of file format.\n\nSubmission file must be named **submission.csv**",
    "1879605": "You can check the errors here: https://www.kaggle.com/code-competition-debugging\n> Submission Scoring Error: Your notebook generated a submission file with incorrect format. Some examples causing this are: wrong number of rows or columns, empty values, an incorrect data type for a value, or invalid submission values from what is expected.",
    "1881007": "Finally worked, but don't know why!!\n\nThe wrong submission was: \n\n\n\n```\nlst = []\nfor  file in test_files:\n    try:\n        id_ = file.split('.')[0]\n        result = rank_cells(test_dir + '/' + file)\n        to_add = ' '.join(result)\n        lst.append({'id':id_, 'cell_order':to_add})        \ndf_result = pd.DataFrame(lst)\ndf_result.to_csv('submission.csv', index = False)\n```\n\nAnd the accepted on is :\n\n\n\n\n```\ndf_result = pd.DataFrame(columns = ['id', 'cell_order'])\nfor  file in test_files:\n    try:\n        id_ = file.split('.')[0]\n        result = rank_cells(test_dir + '/' + file)\n        to_add = ' '.join(result)\n        df_result = df_result.append({'id':id_, 'cell_order':to_add}, ignore_index=True)\ndf_result.to_csv('submission.csv', index = False)\n```",
    "1888705": "Double check that your submission file is in the correct format per the sample submission file. If that is all correct, then unfortunately errors sometimes occurs on Kaggle and there is not much you can do about it except submit again.."
  },
  "source": "meta"
}