Reputation: 9
I am getting this error while uploading csv file:
FileNotFoundError Traceback (most recent call last)
<ipython-input-125-98f27abec4ad> in <module>
----> 1 df2=pd.read_csv(r"C:/Users/Poo/Documents/example/IMDB_data-Copy.csv")
Upvotes: 0
Views: 58
Reputation: 69785
I think the problem is that your OS is Windows, so use \
instead of /
as follows:
df2=pd.read_csv(r'C:\Users\\Poo\Documents\example\IMDB_data-Copy.csv')
Keep in mind that this will work because as mentioned by @hiroprotagonist, you are using a raw string (r''
), if you don't use a raw string, \
is a special character to scape other characters, so you will have to use \\
.
Upvotes: 1