{
  "id": 75841,
  "title": "Why does not merchant_category_id match in 'merchants data' and 'transactions data' ?",
  "url": "/competitions/elo-merchant-category-recommendation/discussion/75841",
  "author_name": "",
  "post_date": "2018-12-27T04:34:18.487797600Z",
  "votes": null,
  "comment_count": 1,
  "views": 0,
  "content": "<p>I checked to match the \"merchant_catagory_id\" in transactions data and merchants data. Showing in the blowing. But it seems not matched and the same thing happens  \"city_id\". why not ??</p>\n\n<p><code>\ntransactions %&gt;% \n  left_join(merchants %&gt;% \n              select(merchant_category_id, numerical_1) %&gt;% \n              distinct(merchant_category_id, .keep_all = TRUE),by=\"merchant_category_id\") %&gt;% \n  filter(is.na(numerical_1)) %&gt;% \n  distinct(merchant_category_id) \n</code></p>\n\n<p>thanks</p>",
  "messages": [
    {
      "id": "445801",
      "postDate": "12/27/2018 04:34:18",
      "content": "<p>I checked to match the \"merchant_catagory_id\" in transactions data and merchants data. Showing in the blowing. But it seems not matched and the same thing happens  \"city_id\". why not ??</p>\n\n<p><code>\ntransactions %&gt;% \n  left_join(merchants %&gt;% \n              select(merchant_category_id, numerical_1) %&gt;% \n              distinct(merchant_category_id, .keep_all = TRUE),by=\"merchant_category_id\") %&gt;% \n  filter(is.na(numerical_1)) %&gt;% \n  distinct(merchant_category_id) \n</code></p>\n\n<p>thanks</p>",
      "rawMarkdown": "I checked to match the \"merchant_catagory_id\" in transactions data and merchants data. Showing in the blowing. But it seems not matched and the same thing happens  \"city_id\". why not ??\n\n```\ntransactions %&gt;% \n  left_join(merchants %&gt;% \n              select(merchant_category_id, numerical_1) %&gt;% \n              distinct(merchant_category_id, .keep_all = TRUE),by=\"merchant_category_id\") %&gt;% \n  filter(is.na(numerical_1)) %&gt;% \n  distinct(merchant_category_id) \n```\n\nthanks",
      "votes": null
    },
    {
      "id": "477840",
      "postDate": "02/25/2019 10:50:45",
      "content": "<p>I found the same things, any idea on that matter ?</p>",
      "rawMarkdown": "I found the same things, any idea on that matter ?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 477840,
      "author_name": "benteo",
      "author_url": "",
      "post_date": "02/25/2019 10:50:45",
      "content": "<p>I found the same things, any idea on that matter ?</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "445801": "I checked to match the \"merchant_catagory_id\" in transactions data and merchants data. Showing in the blowing. But it seems not matched and the same thing happens  \"city_id\". why not ??\n\n```\ntransactions %&gt;% \n  left_join(merchants %&gt;% \n              select(merchant_category_id, numerical_1) %&gt;% \n              distinct(merchant_category_id, .keep_all = TRUE),by=\"merchant_category_id\") %&gt;% \n  filter(is.na(numerical_1)) %&gt;% \n  distinct(merchant_category_id) \n```\n\nthanks",
    "477840": "I found the same things, any idea on that matter ?"
  },
  "source": "meta"
}