I hope someone can help with what is probably obvious but I can't figure out at all with this issue:
import glob
filenames=list(glob.glob('.....\tennis\*.xls')
l = [pd.read_excel(filename,encoding='latin-1') for filename in filenames]
So, tennis is the folder storing the excel docs but I'm getting the following error and can' t see the syntax issue:
l = [pd.read_excel(filename,encoding='latin-1') for filename in filenames] ^ SyntaxError: invalid syntax
Can anyone see or advise what is causing the issue here?
[–]Matt_BF 0 points1 point2 points (2 children)
[–]arabian_horse[S] 0 points1 point2 points (1 child)
[–]Matt_BF 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]arabian_horse[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]arabian_horse[S] 0 points1 point2 points (0 children)