I\'m working with pandas and need to read some csv files, the structure is something like this:
folder/folder2/scripts_folder/script.py folder/fol
folder/folder2/scripts_folder/script.py
folder/fol
Keeping things tidy with f-strings:
import os import pandas as pd data_files = '../data_folder/' csv_name = 'data.csv' pd.read_csv(f"{data_files}{csv_name}")