While reading the excel file you receive the below error
train = pd.read_csv("Train.csv")
train.head()
"UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 2: invalid start byte"
Include the encoding parameter in read_csv function as below
train = pd.read_csv("Train.csv")
train.head()
"UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 2: invalid start byte"
No comments:
Post a Comment