E:\anaconda\python.exe F:\pythonproject\江苏数据处理1\成为可预测文件.py Traceback (most recent call last): File "F:\pythonproject\江苏数据处理1\成为可预测文件.py", line 5, in <module> df = pd.read_excel('F:\\pythonproject\江苏数据处理1\\地区-企业类型-企业\\常州危险品运输企业\\m.xlsx') File "E:\anaconda\lib\site-packages\pandas\util\_decorators.py", line 311, in wrapper return func(*args, **kwargs) File "E:\anaconda\lib\site-packages\pandas\io\excel\_base.py", line 457, in read_excel io = ExcelFile(io, storage_options=storage_options, engine=engine) File "E:\anaconda\lib\site-packages\pandas\io\excel\_base.py", line 1376, in __init__ ext = inspect_excel_format( File "E:\anaconda\lib\site-packages\pandas\io\excel\_base.py", line 1250, in inspect_excel_format with get_handle( File "E:\anaconda\lib\site-packages\pandas\io\common.py", line 798, in get_handle handle = open(handle, ioargs.mode) FileNotFoundError: [Errno 2] No such file or directory: 'F:\\pythonproject\\江苏数据处理1\\地区-企业类型-企业\\常州危险品运输企业\\m.xlsx'
时间: 2023-07-03 17:29:27 浏览: 120
基于Anaconda环境下的Python数据分析及可视化.docx
5星 · 资源好评率100%
根据你的错误信息,看起来你读取文件的路径有问题。请检查一下文件路径是否正确,确保文件存在,并且路径中的反斜杠符号应该使用两个,或者使用单个正斜杠。例如,你可以尝试修改路径为:
```
df = pd.read_excel('F:/pythonproject/江苏数据处理1/地区-企业类型-企业/常州危险品运输企业/m.xlsx')
```
或者:
```
df = pd.read_excel('F:\\\\pythonproject\\江苏数据处理1\\地区-企业类型-企业\\常州危险品运输企业\\m.xlsx')
```
阅读全文