Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import pandas as pd
- filelist = ['your/path/tofile1', 'your/path/tofile2', 'your/path/tofile3', etc]
- filedate = 0
- for file in fileslist:
- if os.path.getmtime(file) > filedate:
- newestfile, filedate = file, os.path.getmtime(file)
- pd.read_excel(newestfile)
Add Comment
Please, Sign In to add comment