【问题标题】:" read xlsx file " [Errno 22] Invalid argument [duplicate]“读取 xlsx 文件” [Errno 22] 无效参数 [重复]
【发布时间】:2021-04-22 04:28:54
【问题描述】:

我正在尝试阅读 Excel 工作表“temp.xslx”

我的代码是:

temp =pd.read_excel("D:\temp.xlsx")

我得到的错误:

OSError: [Errno 22] Invalid argument: 'D:\temp.xlsx' 

我用谷歌搜索了这个错误,但我一遍又一遍地得到同样的错误

【问题讨论】:

标签: python pandas dataframe data-science


【解决方案1】:

试试pd.read_excel("D:\\temp.xlsx")pd.read_excel(r"D:\temp.xlsx")

【讨论】:

  • 它没用 :( ty tho
猜你喜欢
  • 2020-01-16
  • 2019-01-13
  • 2019-10-13
  • 2019-04-27
  • 1970-01-01
  • 1970-01-01
  • 2021-09-22
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多