Currently, I have created a code that makes graphs from data in .csv files. However, I can only run the code if that code is present in the folder with the csv files. How can I make the the script file so that it doesn't have to be in the same directory as the .csv files. Also, I would like that same script to read every csv file in that other directory.
This is what I was using before:
directory = ""
listing = os.listdir(directory)
for files in listing:
if files.endswith('.csv'):
df=pd.read_csv(files)