{
  "id": 14888,
  "title": "More help needed in parsing Russian Character into Python",
  "url": "/competitions/avito-context-ad-clicks/discussion/14888",
  "author_name": "",
  "post_date": "2015-06-25T23:47:02.110Z",
  "votes": null,
  "comment_count": 1,
  "views": 604,
  "content": "<p>Has anyone used character fields like 'Params' in adInfo.tsv? I was trying to use UTF-8 encoding to read into python,</p>\n<p><code>df=pd.read_csv('~/AdsInfo.tsv',delimiter='\\t',encoding='utf-8',nrows=100)</code></p>\n<p>but the column of 'Params' was encoded including the { } that showed this column is a dictionary.</p>\n<p><code> u&quot;{817:'\\u041a\\u0443\\u0437\\u043e\\u0432', 5:'\\u0417\\u0430\\u043f\\u0447\\u0430\\u0441\\u0442\\u0438', 598:'\\u0414\\u043b\\u044f \\u0430\\u0432\\u0442\\u043e\\u043c\\u043e\\u0431\\u0438\\u043b\\u0435\\u0439'}&quot;</code></p>\n<p>I wonder if there is a way to extract features (eg, 817, 598,...) from these encoded strings?</p>",
  "messages": [
    {
      "id": "82755",
      "postDate": "06/25/2015 23:47:02",
      "content": "<p>Has anyone used character fields like 'Params' in adInfo.tsv? I was trying to use UTF-8 encoding to read into python,</p>\n<p><code>df=pd.read_csv('~/AdsInfo.tsv',delimiter='\\t',encoding='utf-8',nrows=100)</code></p>\n<p>but the column of 'Params' was encoded including the { } that showed this column is a dictionary.</p>\n<p><code> u&quot;{817:'\\u041a\\u0443\\u0437\\u043e\\u0432', 5:'\\u0417\\u0430\\u043f\\u0447\\u0430\\u0441\\u0442\\u0438', 598:'\\u0414\\u043b\\u044f \\u0430\\u0432\\u0442\\u043e\\u043c\\u043e\\u0431\\u0438\\u043b\\u0435\\u0439'}&quot;</code></p>\n<p>I wonder if there is a way to extract features (eg, 817, 598,...) from these encoded strings?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "82788",
      "postDate": "06/26/2015 15:15:19",
      "content": "<p>try &nbsp;encoding='cp1251'</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 82788,
      "author_name": "michaelswan",
      "author_url": "",
      "post_date": "06/26/2015 15:15:19",
      "content": "<p>try &nbsp;encoding='cp1251'</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "82755": "",
    "82788": ""
  },
  "source": "meta"
}