这种报错一般由两种情况引起:

一、函数参数为路径而非文件名,

二、函数参数带有中文

第一种的解决就是将文件名添加到路径后即可

第二种是在read_csv()方法时指定engine为Python就可以了,当然还可以先使用 with open()函数先打开在读取

pd.read_csv(read_file, encoding='GB18030',engine='python')

相关文章:

  • 2021-11-09
  • 2022-12-23
  • 2021-07-22
  • 2021-06-29
  • 2022-12-23
  • 2021-10-30
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-04-05
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
相关资源
相似解决方案