Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. 4
  2. 12
  3. 13
  4. 6
  5. .....
  6.  
  7. 20
  8. 3
  9. 9
  10. 14
  11. .....
  12.  
  13. r_1 r_2
  14. 0 4 20
  15. 1 12 3
  16. 2 13 9
  17. 3 6 14
  18.  
  19. allfiles = []
  20. for root, dirs, files in os.walk(r'/my_directory_path/'):
  21. for file in files:
  22. if file.endswith('.csv'):
  23. allfiles.append(file)
  24.  
  25. big = pd.DataFrame
  26.  
  27. for i in allfiles:
  28. file='/my_directory_path/' + i
  29. big[i] = pd.read_csv(file,sep='t',header=None)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement