pandas读取csv中文,报错:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 41: invalid start byte
解决方法:
import pandas as pd df=pd.read_csv(r"D:\XXX.csv",encoding='gb2312')
pandas读取csv中文,报错:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 41: invalid start byte
解决方法:
import pandas as pd df=pd.read_csv(r"D:\XXX.csv",encoding='gb2312')