今天在用pandas读取同事传过来的excel时,出现了UnicodeDecodeError: 'utf-16-le' codec can't decode bytes in position 60-61: unexpected end of data的问题。
找了一圈儿是因为同事传过来的excel后缀名是xls,新建一个xlsx的excel然后将内容复制进去就可以了。直接对原来的xls文档另存为xlsx文档读取还是有问题(IndexError: list index out of range)。