Last answered:

26 Feb 2024

Posted on:

14 Feb 2024

0

Why is the file I have on my computer not found?

I followed the lecture and the file I should be working with is not found.

1 answers ( 0 marked as helpful)
Instructor
Posted on:

26 Feb 2024

0

Hi Ferdinand, 

thanks for reaching out! As you're using a Jupyter Notebook, you'd need to save the file in the same directory as your Jupyter Notebook for this exercise, otherwise you'd need to add the file path when you're reading the csv using pandas. In the second scenario, make sure you put the file path using / instead of \, for example 

data = pd.read_csv("C:/users/data/bar-chart.csv") 

If you still get any errors in the code, please let me know and include some screenshots of the code alongside the error messages. 


Best, 

365 Eli

Submit an answer