{
  "id": 66491,
  "title": "device.deviceCategory versus device.isMobile",
  "url": "/competitions/ga-customer-revenue-prediction/discussion/66491",
  "author_name": "",
  "post_date": "2018-09-22T03:15:31.652574700Z",
  "votes": 1,
  "comment_count": 3,
  "views": 0,
  "content": "<p><a href=\"https://support.google.com/analytics/answer/3437719?hl=en\">https://support.google.com/analytics/answer/3437719?hl=en</a></p>\n\n<p>claims that  device.isMobile is deprecated, to use device.deviceCategory instead.</p>\n\n<p>However, they have inconsistent values.  device.deviceCategory can either be desktop, mobile, or tablet.  Yet some desktop show isMobile to be true, and many tablet have both true and false values for isMobile.</p>\n\n<p>Any ideas on what is to be done, which is the trusted field?</p>\n\n<p>Use </p>\n\n<pre><code>(df_train[(((df_train.device_deviceCategory == 'mobile') | (df_train.device_deviceCategory == 'tablet')) != df_train.device_isMobile)])[['device_deviceCategory', 'device_isMobile']]\n</code></pre>\n\n<p>(or analogous given how you flattened it) to see some of the issue.</p>",
  "messages": [
    {
      "id": "391563",
      "postDate": "09/22/2018 03:15:31",
      "content": "<p><a href=\"https://support.google.com/analytics/answer/3437719?hl=en\">https://support.google.com/analytics/answer/3437719?hl=en</a></p>\n\n<p>claims that  device.isMobile is deprecated, to use device.deviceCategory instead.</p>\n\n<p>However, they have inconsistent values.  device.deviceCategory can either be desktop, mobile, or tablet.  Yet some desktop show isMobile to be true, and many tablet have both true and false values for isMobile.</p>\n\n<p>Any ideas on what is to be done, which is the trusted field?</p>\n\n<p>Use </p>\n\n<pre><code>(df_train[(((df_train.device_deviceCategory == 'mobile') | (df_train.device_deviceCategory == 'tablet')) != df_train.device_isMobile)])[['device_deviceCategory', 'device_isMobile']]\n</code></pre>\n\n<p>(or analogous given how you flattened it) to see some of the issue.</p>",
      "rawMarkdown": "https://support.google.com/analytics/answer/3437719?hl=en\n\nclaims that  device.isMobile is deprecated, to use device.deviceCategory instead.\n\nHowever, they have inconsistent values.  device.deviceCategory can either be desktop, mobile, or tablet.  Yet some desktop show isMobile to be true, and many tablet have both true and false values for isMobile.\n\nAny ideas on what is to be done, which is the trusted field?\n\nUse \n\n    (df_train[(((df_train.device_deviceCategory == 'mobile') | (df_train.device_deviceCategory == 'tablet')) != df_train.device_isMobile)])[['device_deviceCategory', 'device_isMobile']]\n\n(or analogous given how you flattened it) to see some of the issue.",
      "votes": null
    },
    {
      "id": "392314",
      "postDate": "09/23/2018 14:25:45",
      "content": "<p>I have found the same inconsistence and confused by this. Maybe this is only the noise or dirt in the dataset, I think.</p>",
      "rawMarkdown": "I have found the same inconsistence and confused by this. Maybe this is only the noise or dirt in the dataset, I think.",
      "votes": null
    },
    {
      "id": "392361",
      "postDate": "09/23/2018 16:04:30",
      "content": "<p>I saw this, and my guess was that if you are desktop but isMobile==TRUE, then you are running an emulator.</p>",
      "rawMarkdown": "I saw this, and my guess was that if you are desktop but isMobile==TRUE, then you are running an emulator.",
      "votes": null
    },
    {
      "id": "392468",
      "postDate": "09/23/2018 20:15:31",
      "content": "<p>I would trust the not deprecated field over the other one. However I wouldn't rush to drop isMobile, there could be some hidden info in the rows for which those two fields are inconsistent.</p>",
      "rawMarkdown": "I would trust the not deprecated field over the other one. However I wouldn't rush to drop isMobile, there could be some hidden info in the rows for which those two fields are inconsistent.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 392314,
      "author_name": "nlceyes",
      "author_url": "",
      "post_date": "09/23/2018 14:25:45",
      "content": "<p>I have found the same inconsistence and confused by this. Maybe this is only the noise or dirt in the dataset, I think.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 392361,
      "author_name": "returnofsputnik",
      "author_url": "",
      "post_date": "09/23/2018 16:04:30",
      "content": "<p>I saw this, and my guess was that if you are desktop but isMobile==TRUE, then you are running an emulator.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 392468,
      "author_name": "sdoria",
      "author_url": "",
      "post_date": "09/23/2018 20:15:31",
      "content": "<p>I would trust the not deprecated field over the other one. However I wouldn't rush to drop isMobile, there could be some hidden info in the rows for which those two fields are inconsistent.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "391563": "https://support.google.com/analytics/answer/3437719?hl=en\n\nclaims that  device.isMobile is deprecated, to use device.deviceCategory instead.\n\nHowever, they have inconsistent values.  device.deviceCategory can either be desktop, mobile, or tablet.  Yet some desktop show isMobile to be true, and many tablet have both true and false values for isMobile.\n\nAny ideas on what is to be done, which is the trusted field?\n\nUse \n\n    (df_train[(((df_train.device_deviceCategory == 'mobile') | (df_train.device_deviceCategory == 'tablet')) != df_train.device_isMobile)])[['device_deviceCategory', 'device_isMobile']]\n\n(or analogous given how you flattened it) to see some of the issue.",
    "392314": "I have found the same inconsistence and confused by this. Maybe this is only the noise or dirt in the dataset, I think.",
    "392361": "I saw this, and my guess was that if you are desktop but isMobile==TRUE, then you are running an emulator.",
    "392468": "I would trust the not deprecated field over the other one. However I wouldn't rush to drop isMobile, there could be some hidden info in the rows for which those two fields are inconsistent."
  },
  "source": "meta"
}