Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

作者,我在做数据清洗的时候遇到了这样的报错,这是缺少什么文件吗? #31

Open
caasascascaw opened this issue Apr 26, 2024 · 1 comment

Comments

@caasascascaw
Copy link

Traceback (most recent call last):
File "D:\微博\data cleaning.py", line 145, in
items = file(r'D:\微博\评论.xlsx' + j)
File "D:\微博\data cleaning.py", line 117, in file
data = xlrd.open_workbook(inpath, encoding_override='utf-8')
File "D:\py\anaconda\lib\site-packages\xlrd_init_.py", line 166, in open_workbook
file_format = inspect_format(filename, file_contents)
File "D:\py\anaconda\lib\site-packages\xlrd_init_.py", line 60, in inspect_format
with open(path, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'D:\微博\评论.xlsx.idea'

@stay-leave
Copy link
Owner

file是要传文件,路径要对

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants