{
  "id": 11216,
  "title": "python error",
  "url": "/competitions/avazu-ctr-prediction/discussion/11216",
  "author_name": "",
  "post_date": "2014-12-12T09:29:21.390Z",
  "votes": 1,
  "comment_count": 3,
  "views": 810,
  "content": "<p>if train[train[i]==j].shape[0]&lt;10: # let's say 10 is the threshold</p>\n<p>train[train[i]==j][i]='dummy' # replace it with any value you want</p>\n\n<p>i find that the value of train[trian[i]==j][i] didn't changed. i don't know why</p>",
  "messages": [
    {
      "id": "60087",
      "postDate": "12/12/2014 09:29:21",
      "content": "<p>if train[train[i]==j].shape[0]&lt;10: # let's say 10 is the threshold</p>\n<p>train[train[i]==j][i]='dummy' # replace it with any value you want</p>\n\n<p>i find that the value of train[trian[i]==j][i] didn't changed. i don't know why</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "60090",
      "postDate": "12/12/2014 11:32:56",
      "content": "<p>It's a pandas slice gotcha.&nbsp;</p>\n<p>Better to use .loc</p>\n<p>http://stackoverflow.com/questions/23002762/pandas-settingwithcopywarning</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "60100",
      "postDate": "12/12/2014 14:09:47",
      "content": "<p>Thank you very much</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "60101",
      "postDate": "12/12/2014 14:21:29",
      "content": "<p>i used .loc, but the value is still not changed. So sad....</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 60090,
      "author_name": "inversion",
      "author_url": "",
      "post_date": "12/12/2014 11:32:56",
      "content": "<p>It's a pandas slice gotcha.&nbsp;</p>\n<p>Better to use .loc</p>\n<p>http://stackoverflow.com/questions/23002762/pandas-settingwithcopywarning</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 60100,
      "author_name": "datingdata",
      "author_url": "",
      "post_date": "12/12/2014 14:09:47",
      "content": "<p>Thank you very much</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 60101,
      "author_name": "datingdata",
      "author_url": "",
      "post_date": "12/12/2014 14:21:29",
      "content": "<p>i used .loc, but the value is still not changed. So sad....</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "60087": "",
    "60090": "",
    "60100": "",
    "60101": ""
  },
  "source": "meta"
}