{
  "id": 54224,
  "title": "Why getting error when updating the submission?",
  "url": "/competitions/talkingdata-adtracking-fraud-detection/discussion/54224",
  "author_name": "",
  "post_date": "2018-04-11T07:54:23.254748400Z",
  "votes": 1,
  "comment_count": 12,
  "views": 0,
  "content": "<p>A wired problem when uploading the submission. Today I got error as \"ERROR: Record 923514 had 3 columns but expected 2\" But I have checked that the submission only has two columns. And I haven't change the script without the LGB parameters. Can anyone help me with that? </p>",
  "messages": [
    {
      "id": "312112",
      "postDate": "04/11/2018 07:54:23",
      "content": "<p>A wired problem when uploading the submission. Today I got error as \"ERROR: Record 923514 had 3 columns but expected 2\" But I have checked that the submission only has two columns. And I haven't change the script without the LGB parameters. Can anyone help me with that? </p>",
      "rawMarkdown": "A wired problem when uploading the submission. Today I got error as \"ERROR: Record 923514 had 3 columns but expected 2\" But I have checked that the submission only has two columns. And I haven't change the script without the LGB parameters. Can anyone help me with that?",
      "votes": null
    },
    {
      "id": "312118",
      "postDate": "04/11/2018 08:17:36",
      "content": "<p>Just check if your first column is a pandas index. If so remove it and try submitting</p>",
      "rawMarkdown": "Just check if your first column is a pandas index. If so remove it and try submitting",
      "votes": null
    },
    {
      "id": "312120",
      "postDate": "04/11/2018 08:20:44",
      "content": "<p>I save submission as \"submit.to_csv('submission_lgb1.csv', index=False)\". The error appears suddenly :(</p>",
      "rawMarkdown": "I save submission as \"submit.to_csv('submission_lgb1.csv', index=False)\". The error appears suddenly :(",
      "votes": null
    },
    {
      "id": "312157",
      "postDate": "04/11/2018 09:36:45",
      "content": "<p>do \"head submission_lgb1.csv\" from the command line</p>",
      "rawMarkdown": "do \"head submission_lgb1.csv\" from the command line",
      "votes": null
    },
    {
      "id": "312210",
      "postDate": "04/11/2018 11:42:28",
      "content": "<p>I do it in terminal and shows like below: <br>\nLindeMacBook-Pro:talkingData lin$ head submission_lgb1.csv <br>\nclick_id,is_attributed <br>\n0,0.0867836570927 <br>\n1,0.0777208021306 <br>\n2,0.00570800076315 <br>\n3,0.114190806728 <br>\n4,0.0107919458791 <br>\n5,0.0322433351098 <br>\n6,0.0151363595424 <br>\n7,0.136950766907 <br>\n9,0.0801003522148  </p>",
      "rawMarkdown": "I do it in terminal and shows like below:  \nLindeMacBook-Pro:talkingData lin$ head submission_lgb1.csv  \nclick_id,is_attributed  \n0,0.0867836570927  \n1,0.0777208021306  \n2,0.00570800076315  \n3,0.114190806728  \n4,0.0107919458791  \n5,0.0322433351098  \n6,0.0151363595424  \n7,0.136950766907  \n9,0.0801003522148",
      "votes": null
    },
    {
      "id": "312212",
      "postDate": "04/11/2018 11:49:52",
      "content": "<p>Looks fine - are you on windows or linux - if it is windows is maybe a CR LF issue.  Can you try resubmitting just in case it was just a glitch</p>",
      "rawMarkdown": "Looks fine - are you on windows or linux - if it is windows is maybe a CR LF issue.  Can you try resubmitting just in case it was just a glitch",
      "votes": null
    },
    {
      "id": "312217",
      "postDate": "04/11/2018 12:02:31",
      "content": "<p>Can you grep by 923514? If this is click id in error message then we see what wrong with the record.</p>",
      "rawMarkdown": "Can you grep by 923514? If this is click id in error message then we see what wrong with the record.",
      "votes": null
    },
    {
      "id": "312223",
      "postDate": "04/11/2018 12:19:15",
      "content": "<p>I'm on Mac OS. I tried twice, but it still have the problem.</p>",
      "rawMarkdown": "I'm on Mac OS. I tried twice, but it still have the problem.",
      "votes": null
    },
    {
      "id": "312224",
      "postDate": "04/11/2018 12:22:34",
      "content": "<p>Actually I don't know how to upload pic here. I just copy the output of my notebook here.\n            click_id    is_attributed <br>\n923510  923508  0.002248 <br>\n923511  923509  0.000047 <br>\n923512  923512  0.001903 <br>\n923513  923513  0.012012 <br>\n923514  923514  0.001196 <br>\n923515  923515  0.000706 <br>\n923516  923516  0.000157 <br>\n923517  923517  0.000976 <br>\n923518  923518  0.002182 <br>\n923519  923519  0.009644  </p>",
      "rawMarkdown": "Actually I don't know how to upload pic here. I just copy the output of my notebook here.\n\t        click_id\tis_attributed  \n923510\t923508\t0.002248  \n923511\t923509\t0.000047  \n923512\t923512\t0.001903  \n923513\t923513\t0.012012  \n923514\t923514\t0.001196  \n923515\t923515\t0.000706  \n923516\t923516\t0.000157  \n923517\t923517\t0.000976  \n923518\t923518\t0.002182  \n923519\t923519\t0.009644",
      "votes": null
    },
    {
      "id": "312242",
      "postDate": "04/11/2018 12:54:00",
      "content": "<p>So the error message was precise and to the point you somehow added the click_id column twice haflway through the file - just use one of the public kernels to generate the code for your submission</p>\n\n<p>I noticed several people tried to help you and you didn't upvote either hussain or alexandr - how rude ;(</p>",
      "rawMarkdown": "So the error message was precise and to the point you somehow added the click_id column twice haflway through the file - just use one of the public kernels to generate the code for your submission\n\nI noticed several people tried to help you and you didn't upvote either hussain or alexandr - how rude ;(",
      "votes": null
    },
    {
      "id": "312261",
      "postDate": "04/11/2018 13:31:15",
      "content": "<p>My bad, but to be honest this is the first time I tried for asking help and don't know the habit for that. I will upvote all of them now ! really thanks for pointing that out :)</p>",
      "rawMarkdown": "My bad, but to be honest this is the first time I tried for asking help and don't know the habit for that. I will upvote all of them now ! really thanks for pointing that out :)",
      "votes": null
    },
    {
      "id": "312262",
      "postDate": "04/11/2018 13:32:41",
      "content": "<p>And forgive me :P</p>",
      "rawMarkdown": "And forgive me :P",
      "votes": null
    },
    {
      "id": "312266",
      "postDate": "04/11/2018 13:39:42",
      "content": "<p>Forgiven ;)</p>",
      "rawMarkdown": "Forgiven ;)",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 312118,
      "author_name": "hravat",
      "author_url": "",
      "post_date": "04/11/2018 08:17:36",
      "content": "<p>Just check if your first column is a pandas index. If so remove it and try submitting</p>",
      "votes": null,
      "replies": [
        {
          "id": 312120,
          "author_name": "creamiracle",
          "author_url": "",
          "post_date": "04/11/2018 08:20:44",
          "content": "<p>I save submission as \"submit.to_csv('submission_lgb1.csv', index=False)\". The error appears suddenly :(</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 312157,
      "author_name": "scirpus",
      "author_url": "",
      "post_date": "04/11/2018 09:36:45",
      "content": "<p>do \"head submission_lgb1.csv\" from the command line</p>",
      "votes": null,
      "replies": [
        {
          "id": 312210,
          "author_name": "creamiracle",
          "author_url": "",
          "post_date": "04/11/2018 11:42:28",
          "content": "<p>I do it in terminal and shows like below: <br>\nLindeMacBook-Pro:talkingData lin$ head submission_lgb1.csv <br>\nclick_id,is_attributed <br>\n0,0.0867836570927 <br>\n1,0.0777208021306 <br>\n2,0.00570800076315 <br>\n3,0.114190806728 <br>\n4,0.0107919458791 <br>\n5,0.0322433351098 <br>\n6,0.0151363595424 <br>\n7,0.136950766907 <br>\n9,0.0801003522148  </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 312212,
          "author_name": "scirpus",
          "author_url": "",
          "post_date": "04/11/2018 11:49:52",
          "content": "<p>Looks fine - are you on windows or linux - if it is windows is maybe a CR LF issue.  Can you try resubmitting just in case it was just a glitch</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 312217,
          "author_name": "alexfir",
          "author_url": "",
          "post_date": "04/11/2018 12:02:31",
          "content": "<p>Can you grep by 923514? If this is click id in error message then we see what wrong with the record.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 312223,
          "author_name": "creamiracle",
          "author_url": "",
          "post_date": "04/11/2018 12:19:15",
          "content": "<p>I'm on Mac OS. I tried twice, but it still have the problem.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 312224,
          "author_name": "creamiracle",
          "author_url": "",
          "post_date": "04/11/2018 12:22:34",
          "content": "<p>Actually I don't know how to upload pic here. I just copy the output of my notebook here.\n            click_id    is_attributed <br>\n923510  923508  0.002248 <br>\n923511  923509  0.000047 <br>\n923512  923512  0.001903 <br>\n923513  923513  0.012012 <br>\n923514  923514  0.001196 <br>\n923515  923515  0.000706 <br>\n923516  923516  0.000157 <br>\n923517  923517  0.000976 <br>\n923518  923518  0.002182 <br>\n923519  923519  0.009644  </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 312242,
          "author_name": "scirpus",
          "author_url": "",
          "post_date": "04/11/2018 12:54:00",
          "content": "<p>So the error message was precise and to the point you somehow added the click_id column twice haflway through the file - just use one of the public kernels to generate the code for your submission</p>\n\n<p>I noticed several people tried to help you and you didn't upvote either hussain or alexandr - how rude ;(</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 312261,
          "author_name": "creamiracle",
          "author_url": "",
          "post_date": "04/11/2018 13:31:15",
          "content": "<p>My bad, but to be honest this is the first time I tried for asking help and don't know the habit for that. I will upvote all of them now ! really thanks for pointing that out :)</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 312262,
          "author_name": "creamiracle",
          "author_url": "",
          "post_date": "04/11/2018 13:32:41",
          "content": "<p>And forgive me :P</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 312266,
          "author_name": "scirpus",
          "author_url": "",
          "post_date": "04/11/2018 13:39:42",
          "content": "<p>Forgiven ;)</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "312112": "A wired problem when uploading the submission. Today I got error as \"ERROR: Record 923514 had 3 columns but expected 2\" But I have checked that the submission only has two columns. And I haven't change the script without the LGB parameters. Can anyone help me with that?",
    "312118": "Just check if your first column is a pandas index. If so remove it and try submitting",
    "312120": "I save submission as \"submit.to_csv('submission_lgb1.csv', index=False)\". The error appears suddenly :(",
    "312157": "do \"head submission_lgb1.csv\" from the command line",
    "312210": "I do it in terminal and shows like below:  \nLindeMacBook-Pro:talkingData lin$ head submission_lgb1.csv  \nclick_id,is_attributed  \n0,0.0867836570927  \n1,0.0777208021306  \n2,0.00570800076315  \n3,0.114190806728  \n4,0.0107919458791  \n5,0.0322433351098  \n6,0.0151363595424  \n7,0.136950766907  \n9,0.0801003522148",
    "312212": "Looks fine - are you on windows or linux - if it is windows is maybe a CR LF issue.  Can you try resubmitting just in case it was just a glitch",
    "312217": "Can you grep by 923514? If this is click id in error message then we see what wrong with the record.",
    "312223": "I'm on Mac OS. I tried twice, but it still have the problem.",
    "312224": "Actually I don't know how to upload pic here. I just copy the output of my notebook here.\n\t        click_id\tis_attributed  \n923510\t923508\t0.002248  \n923511\t923509\t0.000047  \n923512\t923512\t0.001903  \n923513\t923513\t0.012012  \n923514\t923514\t0.001196  \n923515\t923515\t0.000706  \n923516\t923516\t0.000157  \n923517\t923517\t0.000976  \n923518\t923518\t0.002182  \n923519\t923519\t0.009644",
    "312242": "So the error message was precise and to the point you somehow added the click_id column twice haflway through the file - just use one of the public kernels to generate the code for your submission\n\nI noticed several people tried to help you and you didn't upvote either hussain or alexandr - how rude ;(",
    "312261": "My bad, but to be honest this is the first time I tried for asking help and don't know the habit for that. I will upvote all of them now ! really thanks for pointing that out :)",
    "312262": "And forgive me :P",
    "312266": "Forgiven ;)"
  },
  "source": "meta"
}