path = '/Desktop/somefolder'
for filename in os.listdir(path):
with open(path+filename) as f:
- read the 3-4 excel files and attach the path
- be able to concat them based on a specific column
filename gives me the name of the file I have in the directory. My idea was to concat the filename with the path to be able to read and concat them.
I am not sure how to use the filename that I get to be able to load it as a df and concat it.