问题描述
读取excel
,却出现了如下错误。
u'1.G1P0\u5b5539+6\u5468LOA\u5355\u6d3b\u80ce\u987a\u4ea72.\u598a\u5a20\u671f\u7cd6\u5c3f\u75c53\u3001\u4f1a\u9634I\u5ea6\u88c2\u4f244.
问题解决
方式一:
终归还是编码的问题。主要起作用的是先decode
再进行encode
操作。
def read_xls(io_path):
sheet = pd.read_excel(io_path, encoding='utf8')