2021年4月24日星期六

Python: FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Aditya Bhatt\\Desktop\\Aditya\\SampleData.csv'

So, here's my code...

filename = r"C:\Users\Aditya Bhatt\Desktop\Aditya\SampleData.csv"   df = pd.read_csv(filename)  

Now, it shows me this error:

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Aditya Bhatt\Desktop\Aditya\SampleData.csv'

The file location is: "C:\Users\Aditya Bhatt\Desktop\Aditya"[Confirmed]
Name of File: SampleData (.csv file)

I'm running the code on Google Colab
Also, I got this file from the internet (If that helps)

New to Python & APIs
Thanks in advance!

https://stackoverflow.com/questions/67249661/python-filenotfounderror-errno-2-no-such-file-or-directory-c-users-adit April 25, 2021 at 12:04PM

没有评论:

发表评论