Pandas will start to look where your current python file is located. Therefore, you can go from the current directory to where your data is located on ".." For example:
pd.read_csv('../../../data_folder/data.csv')
Will go 3 levels up, and then to the data folder (it is assumed that there) Or
pd.read_csv('data_folder/data.csv')
if your data_folder folder is in the same directory as your .py file.
source share