{
  "id": 398041,
  "title": "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 2: invalid start byte",
  "url": "/competitions/favorita-grocery-sales-forecasting/discussion/398041",
  "author_name": "Mehmet Baki Deniz",
  "post_date": "2023-03-28T10:18:46.843000",
  "votes": 3,
  "comment_count": 2,
  "views": 0,
  "content": "<p>hi<br>\nI try to read one of the CSV files with the following code:<br>\ntrain=pd.read_csv('/content/drive/My Drive/favoritagrocerysalesforecasting/train.csv.7z')</p>\n<p>It gives the error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 2: invalid start byte. </p>\n<p>I tried these with no solution:<br>\npd.read_csv(path, sep='\\t', engine='python')</p>\n<p>pd.read_csv(filename, encoding= 'unicode_escape')<br>\ndata = pd.read_csv(filename, encoding= 'unicode_escape')<br>\npd.read_csv(filename, encoding='utf-16')<br>\npd.read_csv(filename, encoding='utf-8')</p>\n<p>can anybody help me?</p>",
  "messages": [
    {
      "id": 2200145,
      "postDate": "2023-03-28T10:18:46.843Z",
      "content": "<p>hi<br>\nI try to read one of the CSV files with the following code:<br>\ntrain=pd.read_csv('/content/drive/My Drive/favoritagrocerysalesforecasting/train.csv.7z')</p>\n<p>It gives the error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 2: invalid start byte. </p>\n<p>I tried these with no solution:<br>\npd.read_csv(path, sep='\\t', engine='python')</p>\n<p>pd.read_csv(filename, encoding= 'unicode_escape')<br>\ndata = pd.read_csv(filename, encoding= 'unicode_escape')<br>\npd.read_csv(filename, encoding='utf-16')<br>\npd.read_csv(filename, encoding='utf-8')</p>\n<p>can anybody help me?</p>",
      "rawMarkdown": "hi\nI try to read one of the CSV files with the following code:\ntrain=pd.read_csv('/content/drive/My Drive/favoritagrocerysalesforecasting/train.csv.7z')\n\nIt gives the error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 2: invalid start byte. \n\nI tried these with no solution:\npd.read_csv(path, sep='\\t', engine='python')\n\npd.read_csv(filename, encoding= 'unicode_escape')\ndata = pd.read_csv(filename, encoding= 'unicode_escape')\npd.read_csv(filename, encoding='utf-16')\npd.read_csv(filename, encoding='utf-8')\n\ncan anybody help me?",
      "votes": 3
    },
    {
      "id": 2297241,
      "postDate": "2023-06-12T12:49:16.903Z",
      "content": "<p>encoding= 'unicode_escape' are work for me</p>",
      "rawMarkdown": "encoding= 'unicode_escape' are work for me"
    },
    {
      "id": 2200221,
      "postDate": "2023-03-28T11:40:41.077Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 2297241,
      "author_name": "MD. RIPON MIAH",
      "author_url": "",
      "post_date": "2023-06-12T12:49:16.903000",
      "content": "<p>encoding= 'unicode_escape' are work for me</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 2200221,
      "author_name": "",
      "author_url": "",
      "post_date": "2023-03-28T11:40:41.077000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2200145": "hi\nI try to read one of the CSV files with the following code:\ntrain=pd.read_csv('/content/drive/My Drive/favoritagrocerysalesforecasting/train.csv.7z')\n\nIt gives the error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 2: invalid start byte. \n\nI tried these with no solution:\npd.read_csv(path, sep='\\t', engine='python')\n\npd.read_csv(filename, encoding= 'unicode_escape')\ndata = pd.read_csv(filename, encoding= 'unicode_escape')\npd.read_csv(filename, encoding='utf-16')\npd.read_csv(filename, encoding='utf-8')\n\ncan anybody help me?",
    "2297241": "encoding= 'unicode_escape' are work for me",
    "2200221": ""
  }
}