{
  "id": 55411,
  "title": "Resolving Item ID errors for submission",
  "url": "/competitions/avito-demand-prediction/discussion/55411",
  "author_name": "Sanjay Arumugam Jaganmohan",
  "post_date": "2018-04-26T08:57:12.828000",
  "votes": 0,
  "comment_count": 7,
  "views": 0,
  "content": "<p>ERROR: The value '3.48E+16' in the key column 'item_id' has already been defined (Line 249273, Column 1)\nERROR: The value '8.65663E+11' in the key column 'item_id' has already been defined (Line 448810, Column 1)</p>\n\n<p>Some Item ID's are just numbers and not alphanumeric. And some have more than 12 digits. How did you get around this?\nI know there are numerous discussions on Kaggle about Item ID errors but I've yet to find a useful way to resolve it. </p>",
  "messages": [
    {
      "id": 320162,
      "postDate": "2018-04-27T17:16:01.657Z",
      "content": "<p>submit= pd.read_csv('../input/sample_submission.csv')\nsubmit['deal_probability'] = preds\nsubmit['deal_probability'].clip(0.0, 1.0, inplace=True)\nsubmit.to_csv('firstsub.csv', index=False)\nsubmit.head()</p>\n\n<p>Same problem!</p>",
      "rawMarkdown": "submit= pd.read_csv('../input/sample_submission.csv')\nsubmit['deal_probability'] = preds\nsubmit['deal_probability'].clip(0.0, 1.0, inplace=True)\nsubmit.to_csv('firstsub.csv', index=False)\nsubmit.head()\n\nSame problem!\n\n",
      "replies": [
        {
          "id": 320311,
          "postDate": "2018-04-28T08:47:26.467Z",
          "content": "<p>have you managed to resolve it?</p>",
          "rawMarkdown": "have you managed to resolve it?"
        },
        {
          "id": 320477,
          "postDate": "2018-04-28T19:22:02.647Z",
          "content": "<p>mm yes,  working now try this...</p>\n\n<p>submit= pd.read_csv('../input/sample_submission.csv') \nsubmit['deal_probability'] = preds \nsubmit['deal_probability'].clip(0.0, 1.0, inplace=True) \nsubmit.to_csv('firstsub.csv', index=False) submit.head()</p>",
          "rawMarkdown": "mm yes,  working now try this...\n\nsubmit= pd.read_csv('../input/sample_submission.csv') \nsubmit['deal_probability'] = preds \nsubmit['deal_probability'].clip(0.0, 1.0, inplace=True) \nsubmit.to_csv('firstsub.csv', index=False) submit.head()"
        },
        {
          "id": 320600,
          "postDate": "2018-04-29T08:04:21.873Z",
          "content": "<p>I figured it out. It was because I had opened the sample submission file previously and excel converted the ID's to numeric. It's resolved now. Thanks!</p>",
          "rawMarkdown": "I figured it out. It was because I had opened the sample submission file previously and excel converted the ID's to numeric. It's resolved now. Thanks!\n",
          "votes": 1
        }
      ]
    },
    {
      "id": 319545,
      "postDate": "2018-04-26T09:22:07.923Z",
      "content": "<p>Did you check the kernel? It might be helpful. </p>",
      "rawMarkdown": "Did you check the kernel? It might be helpful. \n",
      "replies": [
        {
          "id": 319554,
          "postDate": "2018-04-26T09:37:24.417Z",
          "content": "<p>I did. There doesn't seem to be any type conversion for test_id in any of them.  I've tried converting the test_id's to string and submitting, but it still throws the error. </p>",
          "rawMarkdown": "I did. There doesn't seem to be any type conversion for test_id in any of them.  I've tried converting the test_id's to string and submitting, but it still throws the error. "
        }
      ]
    },
    {
      "id": 319538,
      "postDate": "2018-04-26T08:57:12.827Z",
      "content": "<p>ERROR: The value '3.48E+16' in the key column 'item_id' has already been defined (Line 249273, Column 1)\nERROR: The value '8.65663E+11' in the key column 'item_id' has already been defined (Line 448810, Column 1)</p>\n\n<p>Some Item ID's are just numbers and not alphanumeric. And some have more than 12 digits. How did you get around this?\nI know there are numerous discussions on Kaggle about Item ID errors but I've yet to find a useful way to resolve it. </p>",
      "rawMarkdown": "ERROR: The value '3.48E+16' in the key column 'item_id' has already been defined (Line 249273, Column 1)\nERROR: The value '8.65663E+11' in the key column 'item_id' has already been defined (Line 448810, Column 1)\n\nSome Item ID's are just numbers and not alphanumeric. And some have more than 12 digits. How did you get around this?\nI know there are numerous discussions on Kaggle about Item ID errors but I've yet to find a useful way to resolve it. "
    },
    {
      "id": 319608,
      "postDate": "2018-04-26T12:34:33.153Z",
      "content": "<p>I am also facing same problem. Any solution...</p>",
      "rawMarkdown": "I am also facing same problem. Any solution...",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 320162,
      "author_name": "Angel Lordan",
      "author_url": "",
      "post_date": "2018-04-27T17:16:01.657000",
      "content": "<p>submit= pd.read_csv('../input/sample_submission.csv')\nsubmit['deal_probability'] = preds\nsubmit['deal_probability'].clip(0.0, 1.0, inplace=True)\nsubmit.to_csv('firstsub.csv', index=False)\nsubmit.head()</p>\n\n<p>Same problem!</p>",
      "votes": 0,
      "replies": [
        {
          "id": 320311,
          "author_name": "Sanjay Arumugam Jaganmohan",
          "author_url": "",
          "post_date": "2018-04-28T08:47:26.467000",
          "content": "<p>have you managed to resolve it?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 320477,
          "author_name": "Angel Lordan",
          "author_url": "",
          "post_date": "2018-04-28T19:22:02.647000",
          "content": "<p>mm yes,  working now try this...</p>\n\n<p>submit= pd.read_csv('../input/sample_submission.csv') \nsubmit['deal_probability'] = preds \nsubmit['deal_probability'].clip(0.0, 1.0, inplace=True) \nsubmit.to_csv('firstsub.csv', index=False) submit.head()</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 320600,
          "author_name": "Sanjay Arumugam Jaganmohan",
          "author_url": "",
          "post_date": "2018-04-29T08:04:21.873000",
          "content": "<p>I figured it out. It was because I had opened the sample submission file previously and excel converted the ID's to numeric. It's resolved now. Thanks!</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 319545,
      "author_name": "Vadim Borisov",
      "author_url": "",
      "post_date": "2018-04-26T09:22:07.923000",
      "content": "<p>Did you check the kernel? It might be helpful. </p>",
      "votes": 0,
      "replies": [
        {
          "id": 319554,
          "author_name": "Sanjay Arumugam Jaganmohan",
          "author_url": "",
          "post_date": "2018-04-26T09:37:24.417000",
          "content": "<p>I did. There doesn't seem to be any type conversion for test_id in any of them.  I've tried converting the test_id's to string and submitting, but it still throws the error. </p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 319608,
      "author_name": "",
      "author_url": "",
      "post_date": "2018-04-26T12:34:33.153000",
      "content": "<p>I am also facing same problem. Any solution...</p>",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "320162": "submit= pd.read_csv('../input/sample_submission.csv')\nsubmit['deal_probability'] = preds\nsubmit['deal_probability'].clip(0.0, 1.0, inplace=True)\nsubmit.to_csv('firstsub.csv', index=False)\nsubmit.head()\n\nSame problem!\n\n",
    "319545": "Did you check the kernel? It might be helpful. \n",
    "319538": "ERROR: The value '3.48E+16' in the key column 'item_id' has already been defined (Line 249273, Column 1)\nERROR: The value '8.65663E+11' in the key column 'item_id' has already been defined (Line 448810, Column 1)\n\nSome Item ID's are just numbers and not alphanumeric. And some have more than 12 digits. How did you get around this?\nI know there are numerous discussions on Kaggle about Item ID errors but I've yet to find a useful way to resolve it. ",
    "319608": "I am also facing same problem. Any solution..."
  }
}