Hi,
Got a major question. How can we set up a loop to go through every csv file in a folder and have ourprogram to run for each one?
Here is what we have right now however it's not working:
Got a major question. How can we set up a loop to go through every csv file in a folder and have ourprogram to run for each one?
Here is what we have right now however it's not working:
from os import listdir
from typing import List
files = listdir("results")
allLines = []
for i in files:
files = open("results/" + i, "r")
contents = files.readlines()
allLines.append(contents)
print(allLines)
for xFile in allLines:Any suggestions?
