UnicodeDecodeError: 'utf-8' codec can't decode byte 0xba in position 16: invalid start byte

0 votes

Hi Guys,

I am trying to read one CSV file in my jupyter notebook using pandas, but it shows me Unicode error

How can I solve this error?

Thank You

Apr 9 in Python by akhtar
• 10,580 points
701 views

1 answer to this question.

0 votes

Hi@akhtar,

This type of error will occur, if there are any problem to decode any value. To avoid this you can follow the below given code.

import pandas as pd
dataset = pd.read_csv('csv_file', encoding='ISO-8859–1')

Hope this will help.

Thank You

answered Apr 9 by MD
• 23,050 points
Thank you dude!
Saved Me! Thank You :)

Related Questions In Python

+1 vote
1 answer

UnicodeDecodeError: "utf-8" codec can't decode byte in position : invalid start byte

You have to use the encoding as latin1 ...READ MORE

answered Jul 23, 2019 in Python by Kunal
29,470 views
+1 vote
1 answer
0 votes
0 answers

utf-8' codec can't decode byte 0xa0 in position 10: invalid start byte

my code import wordcloud import numpy as np from matplotlib ...READ MORE

Mar 29 in Python by anonymous
• 120 points
485 views
0 votes
1 answer
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 947 views
0 votes
0 answers
+4 votes
6 answers
0 votes
1 answer

how to solve the error : "ImportError: No module named Tkinter" in python.

Hi@Umama, If you are using Linux system, then ...READ MORE

answered Apr 27 in Python by MD
• 23,050 points
441 views
0 votes
1 answer

How to transfer multiple lines in a file using python?

Hi@akhtar, I don't know it will help you ...READ MORE

answered Mar 31 in Python by MD
• 23,050 points
68 views