{
  "id": 21078,
  "title": "Required column 'id' could not be found",
  "url": "/competitions/expedia-hotel-recommendations/discussion/21078",
  "author_name": "",
  "post_date": "2016-05-19T23:38:02.550Z",
  "votes": null,
  "comment_count": 6,
  "views": 425,
  "content": "<p>Did anyone face the following error while submission?</p>\n\n<blockquote>\n  <blockquote>\n    <p>Required column 'id' could not be found</p>\n  </blockquote>\n</blockquote>\n\n<p>My file has the two columns and required number of rows. But still I cannot submit it! </p>",
  "messages": [
    {
      "id": "120689",
      "postDate": "05/19/2016 23:38:02",
      "content": "<p>Did anyone face the following error while submission?</p>\n\n<blockquote>\n  <blockquote>\n    <p>Required column 'id' could not be found</p>\n  </blockquote>\n</blockquote>\n\n<p>My file has the two columns and required number of rows. But still I cannot submit it! </p>",
      "rawMarkdown": "Did anyone face the following error while submission?\r\n>>Required column 'id' could not be found\r\n\r\nMy file has the two columns and required number of rows. But still I cannot submit it!",
      "votes": null
    },
    {
      "id": "120690",
      "postDate": "05/19/2016 23:59:26",
      "content": "<p>Look at the header of your submission file.</p>",
      "rawMarkdown": "Look at the header of your submission file.",
      "votes": null
    },
    {
      "id": "120691",
      "postDate": "05/20/2016 00:05:37",
      "content": "<p>I have written my code in Python. While writing the answers in csv file, I used the following as the header:</p>\n\n<p>header = &quot;id, hotel_cluster&quot;</p>\n\n<p>But this gives the above error. </p>",
      "rawMarkdown": "I have written my code in Python. While writing the answers in csv file, I used the following as the header:\r\n\r\nheader = \"id, hotel_cluster\"\r\n\r\nBut this gives the above error.",
      "votes": null
    },
    {
      "id": "120693",
      "postDate": "05/20/2016 00:23:42",
      "content": "<p>Just open the CSV file and actually look at the header.</p>",
      "rawMarkdown": "Just open the CSV file and actually look at the header.",
      "votes": null
    },
    {
      "id": "120695",
      "postDate": "05/20/2016 00:29:06",
      "content": "<p>If you are new to python, you can take a look at some public scripts to learn how to do standard things. For example, the last two lines of: <a href=\"https://www.kaggle.com/benhamner/flavours-of-physics/rf-xgboost-example\">https://www.kaggle.com/benhamner/flavours-of-physics/rf-xgboost-example</a> .</p>",
      "rawMarkdown": "If you are new to python, you can take a look at some public scripts to learn how to do standard things. For example, the last two lines of: https://www.kaggle.com/benhamner/flavours-of-physics/rf-xgboost-example .",
      "votes": null
    },
    {
      "id": "120696",
      "postDate": "05/20/2016 00:35:15",
      "content": "<p>Hi, Thank you for the help. I changed the header by hand in the csv file. That worked! </p>",
      "rawMarkdown": "Hi, Thank you for the help. I changed the header by hand in the csv file. That worked!",
      "votes": null
    },
    {
      "id": "120763",
      "postDate": "05/20/2016 12:23:17",
      "content": "<pre><code>pd.to_csv('filename.csv', columns= ['id','hotel_cluster'])\n</code></pre>",
      "rawMarkdown": "pd.to_csv('filename.csv', columns= ['id','hotel_cluster'])",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 120690,
      "author_name": "innerproduct",
      "author_url": "",
      "post_date": "05/19/2016 23:59:26",
      "content": "<p>Look at the header of your submission file.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 120691,
      "author_name": "niladri18",
      "author_url": "",
      "post_date": "05/20/2016 00:05:37",
      "content": "<p>I have written my code in Python. While writing the answers in csv file, I used the following as the header:</p>\n\n<p>header = &quot;id, hotel_cluster&quot;</p>\n\n<p>But this gives the above error. </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 120693,
      "author_name": "innerproduct",
      "author_url": "",
      "post_date": "05/20/2016 00:23:42",
      "content": "<p>Just open the CSV file and actually look at the header.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 120695,
      "author_name": "innerproduct",
      "author_url": "",
      "post_date": "05/20/2016 00:29:06",
      "content": "<p>If you are new to python, you can take a look at some public scripts to learn how to do standard things. For example, the last two lines of: <a href=\"https://www.kaggle.com/benhamner/flavours-of-physics/rf-xgboost-example\">https://www.kaggle.com/benhamner/flavours-of-physics/rf-xgboost-example</a> .</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 120696,
      "author_name": "niladri18",
      "author_url": "",
      "post_date": "05/20/2016 00:35:15",
      "content": "<p>Hi, Thank you for the help. I changed the header by hand in the csv file. That worked! </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 120763,
      "author_name": "skylord",
      "author_url": "",
      "post_date": "05/20/2016 12:23:17",
      "content": "<pre><code>pd.to_csv('filename.csv', columns= ['id','hotel_cluster'])\n</code></pre>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "120689": "Did anyone face the following error while submission?\r\n>>Required column 'id' could not be found\r\n\r\nMy file has the two columns and required number of rows. But still I cannot submit it!",
    "120690": "Look at the header of your submission file.",
    "120691": "I have written my code in Python. While writing the answers in csv file, I used the following as the header:\r\n\r\nheader = \"id, hotel_cluster\"\r\n\r\nBut this gives the above error.",
    "120693": "Just open the CSV file and actually look at the header.",
    "120695": "If you are new to python, you can take a look at some public scripts to learn how to do standard things. For example, the last two lines of: https://www.kaggle.com/benhamner/flavours-of-physics/rf-xgboost-example .",
    "120696": "Hi, Thank you for the help. I changed the header by hand in the csv file. That worked!",
    "120763": "pd.to_csv('filename.csv', columns= ['id','hotel_cluster'])"
  },
  "source": "meta"
}