I'm having a problem when accessing a file path while using python in VSCode with pyenv and poetry on Ubuntu 20.04.
I run this:
import pandas as pd
data = pd.read_csv("../docs/lists.csv")
data
And I got this error:
Exception has occurred: FileNotFoundError
[Errno 2] No such file or directory: '../docs/lists.csv'
File "/home/nisase/my_folder/examples/list.py", line 3, in <module>
data = pd.read_csv("../docs/lists.csv")`
Project tree is below:
my_folder/
|examples/
|list.py
|docs/
|lists.csv