import pandas as pd
df1=pd.read_excel('D:/email/attachment/招行1.28-1.29.xls',header=8,usecols=[0,5,7,16])
df2=pd.read_csv('D:/email/attachment/工行1.28-1.29.csv')
# df2 =pd.read_excel('D:/email/attachment/工行1.28-1.29.xls',header=4,usecols=[0,4,6,8])
print(df2)
报错如下:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 0: invalid continuation byte
另外还想知道在pandas里 csv文件可以和xlsx文件合并吗?
请教各位。