Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import glob
  2. import pandas as pd
  3.  
  4. path = "<path to files>"
  5. file_identifier = "*.xlsx"
  6.  
  7. all_data = pd.DataFrame()
  8. for f in glob.glob(path + "/*" + file_identifier):
  9. df = pd.read_excel(f)
  10. all_data = all_data.append(df,ignore_index=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement