Guest User

Untitled

a guest
Oct 23rd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import os
  2. import pandas as pd
  3.  
  4. filelist = ['your/path/tofile1', 'your/path/tofile2', 'your/path/tofile3', etc]
  5. filedate = 0
  6. for file in fileslist:
  7. if os.path.getmtime(file) > filedate:
  8. newestfile, filedate = file, os.path.getmtime(file)
  9. pd.read_excel(newestfile)
Add Comment
Please, Sign In to add comment