I'm absolute new to python 3. I have the problem that I have a .csv file that is in a different folder than the .ipynb in which I code.
Jupyter Notebook Python 3 location: C:\Tools\Jupyter\test.ipynb
Data storage location C:\Users\my.name\OneDrive\python\data\cars.csv
If I place the .csv file directly to the Jupyter location, then opening it with pandas works.
import pandas as pd
df = pd.read_csv("./cars.csv")
Now I tried the following code to use the other location as file path, but it didn't work: "FileNotFoundError:".
import pandas as pd
df = pd.read_csv("C:/Users/my.name/OneDrive/python/data/cars.csv")
How can I open the file?
Sorry for that absolute beginners stuff..
I apriciate your help!