I'm trying to aggregate multiple files:
import glob
import pandas as pd
import time
list_of_files = glob.glob('../data/*.xlsx')
frame = pd.DataFrame()
list_ = []
for file_ in list_of_files:
df = pd.read_excel(file_, ignore_index=True)
list_.append(df)
frame = pd.concat(list_)
but I've given the following error:
My list of files seems ok:
['../data/Chat Transcript Report 1.xlsx',
'../data/Chat Transcript Report2.xlsx',
'../data/Chat Transcript Report3.xlsx',
'../data/Chat Transcript Report.xlsx']
But the error seems to traceback to the read_excel line, but I'm not sure what the problem is with the indexing. Any advice would be much appreciated!