python 报错"UnicodeDecodeError: 'utf-8' codec can't decode byte"的解决办法

读取h5 文件时报错:

python 报错"UnicodeDecodeError: 'utf-8' codec can't decode byte"

法一:MS = pd.read_csv("path",encoding = "ISO-8859-1", engine='python',delimiter = ";", error_bad_lines=False)

二:encoding = 'gb2312'

三:encoding = 'gbk'

posted @ 2021-07-01 15:11  柒久酒  阅读(1377)  评论(0编辑  收藏  举报