{
  "id": 21727,
  "title": "what does town_state.csv actually contain?",
  "url": "/competitions/grupo-bimbo-inventory-demand/discussion/21727",
  "author_name": "",
  "post_date": "2016-06-16T12:25:42.813Z",
  "votes": null,
  "comment_count": 1,
  "views": 602,
  "content": "<p>If you believe the headers, The schema for town_state.csv is:\nAgencia_ID\nState\nTown</p>\n\n<p>The data dictionary for train and test has \nAgencia_ID &#8212; Sales Depot ID</p>\n\n<p>So is town_state the name of the depot and the depot is named after the closest town?  There are duplicate towns in the frame (using F#):</p>\n\n<pre><code>town_States |&gt; Seq.filter(fun r -&gt; r.Town = &quot;2013 AG. MEGA NAUCALPAN&quot;)\n</code></pre>\n\n<p>gives</p>\n\n<blockquote>\n  <p>seq\n      [(1119, &quot;2013 AG. MEGA NAUCALPAN&quot;, &quot;ESTADO DE M&#201;XICO&quot;);\n       (1139, &quot;2013 AG. MEGA NAUCALPAN&quot;, &quot;ESTADO DE M&#201;XICO&quot;);\n       (1142, &quot;2013 AG. MEGA NAUCALPAN&quot;, &quot;ESTADO DE M&#201;XICO&quot;);\n       (1221, &quot;2013 AG. MEGA NAUCALPAN&quot;, &quot;ESTADO DE M&#201;XICO&quot;); ...]</p>\n</blockquote>\n\n<p>Looking at the 1st record, is the 1119 the depotId, the 2013 is the townId, and no stateId present?</p>\n\n<p>Thanks in advance</p>",
  "messages": [
    {
      "id": "124245",
      "postDate": "06/16/2016 12:25:42",
      "content": "<p>If you believe the headers, The schema for town_state.csv is:\nAgencia_ID\nState\nTown</p>\n\n<p>The data dictionary for train and test has \nAgencia_ID &#8212; Sales Depot ID</p>\n\n<p>So is town_state the name of the depot and the depot is named after the closest town?  There are duplicate towns in the frame (using F#):</p>\n\n<pre><code>town_States |&gt; Seq.filter(fun r -&gt; r.Town = &quot;2013 AG. MEGA NAUCALPAN&quot;)\n</code></pre>\n\n<p>gives</p>\n\n<blockquote>\n  <p>seq\n      [(1119, &quot;2013 AG. MEGA NAUCALPAN&quot;, &quot;ESTADO DE M&#201;XICO&quot;);\n       (1139, &quot;2013 AG. MEGA NAUCALPAN&quot;, &quot;ESTADO DE M&#201;XICO&quot;);\n       (1142, &quot;2013 AG. MEGA NAUCALPAN&quot;, &quot;ESTADO DE M&#201;XICO&quot;);\n       (1221, &quot;2013 AG. MEGA NAUCALPAN&quot;, &quot;ESTADO DE M&#201;XICO&quot;); ...]</p>\n</blockquote>\n\n<p>Looking at the 1st record, is the 1119 the depotId, the 2013 is the townId, and no stateId present?</p>\n\n<p>Thanks in advance</p>",
      "rawMarkdown": "If you believe the headers, The schema for town_state.csv is:\r\nAgencia_ID\r\nState\r\nTown\r\n\r\nThe data dictionary for train and test has \r\nAgencia_ID — Sales Depot ID\r\n\r\nSo is town_state the name of the depot and the depot is named after the closest town?  There are duplicate towns in the frame (using F#):\r\n\r\n    town_States |> Seq.filter(fun r -> r.Town = \"2013 AG. MEGA NAUCALPAN\")\r\n\r\ngives\r\n\r\n>   seq\r\n>     [(1119, \"2013 AG. MEGA NAUCALPAN\", \"ESTADO DE MÉXICO\");\r\n>      (1139, \"2013 AG. MEGA NAUCALPAN\", \"ESTADO DE MÉXICO\");\r\n>      (1142, \"2013 AG. MEGA NAUCALPAN\", \"ESTADO DE MÉXICO\");\r\n>      (1221, \"2013 AG. MEGA NAUCALPAN\", \"ESTADO DE MÉXICO\"); ...]\r\n\r\n\r\nLooking at the 1st record, is the 1119 the depotId, the 2013 is the townId, and no stateId present?\r\n\r\nThanks in advance",
      "votes": null
    },
    {
      "id": "127679",
      "postDate": "07/14/2016 22:14:19",
      "content": "<p>Hi Jamie\nSorry for delay\ntown_state.csv contains name of city and state related to depot\nI see your message  but I don undestand your point, could you give more info please\nRegards</p>",
      "rawMarkdown": "Hi Jamie\r\nSorry for delay\r\ntown_state.csv contains name of city and state related to depot\r\nI see your message  but I don undestand your point, could you give more info please\r\nRegards",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 127679,
      "author_name": "grupobimbo",
      "author_url": "",
      "post_date": "07/14/2016 22:14:19",
      "content": "<p>Hi Jamie\nSorry for delay\ntown_state.csv contains name of city and state related to depot\nI see your message  but I don undestand your point, could you give more info please\nRegards</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "124245": "If you believe the headers, The schema for town_state.csv is:\r\nAgencia_ID\r\nState\r\nTown\r\n\r\nThe data dictionary for train and test has \r\nAgencia_ID — Sales Depot ID\r\n\r\nSo is town_state the name of the depot and the depot is named after the closest town?  There are duplicate towns in the frame (using F#):\r\n\r\n    town_States |> Seq.filter(fun r -> r.Town = \"2013 AG. MEGA NAUCALPAN\")\r\n\r\ngives\r\n\r\n>   seq\r\n>     [(1119, \"2013 AG. MEGA NAUCALPAN\", \"ESTADO DE MÉXICO\");\r\n>      (1139, \"2013 AG. MEGA NAUCALPAN\", \"ESTADO DE MÉXICO\");\r\n>      (1142, \"2013 AG. MEGA NAUCALPAN\", \"ESTADO DE MÉXICO\");\r\n>      (1221, \"2013 AG. MEGA NAUCALPAN\", \"ESTADO DE MÉXICO\"); ...]\r\n\r\n\r\nLooking at the 1st record, is the 1119 the depotId, the 2013 is the townId, and no stateId present?\r\n\r\nThanks in advance",
    "127679": "Hi Jamie\r\nSorry for delay\r\ntown_state.csv contains name of city and state related to depot\r\nI see your message  but I don undestand your point, could you give more info please\r\nRegards"
  },
  "source": "meta"
}