【发布时间】:2021-01-15 08:15:06
【问题描述】:
我正在尝试使用我桌面上的子文件夹中的 pandas 和 jupyter notebook 将 excel 文件读入数据框。该文件位于我桌面上名为“Data”的文件夹、子文件夹“KN-Data”、子文件夹“New-Files”、文件名“Customers.xlsx”中。
这是我正在尝试的代码:
df_customers = pd.read_excel (r"C:/Users/Zach/Desktop/Data/KN-Data/New-Files/Customers.xlsx")
错误是
[Errno 2] No such file or directory: 'C:/Users/Zach/Desktop/Data/KN-Data/New-Files/Customers.xlsx'
【问题讨论】:
标签: python excel pandas jupyter-notebook readfile