在python中用 pd.read_excel() 读取含中文的excel文件时报错TypeError: expected <class 'str'>,菜鸡求问该如何解决,已试过经验帖的方法但都没有解决,能搜到的也不是类似的问题只是相同的报错。
报错代码data_stock = pd.read_excel(fileName, skipfooter=2)
解决方法:在excel文件里把表头格式改成文本即可
发下你的代码
你把代码发出来看看