Guest User

Untitled

a guest
May 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. os.listdir("V:/FM003")
  2. results = pd.DataFrame([])
  3. for counter, file in enumerate(glob.glob("F5331_FM003**")):
  4. namedf = pd.read_csv(file, header=[0], skiprows=[0,1,2,3,4,5,6],
  5. index_col=[0], usecols= [0,1])
  6. results = results.append(namedf)
  7. print(namedf)
  8.  
  9. for counter, file in enumerate(glob.glob("V:/FM003/F5331_FM003**")):
  10.  
  11. import os
  12.  
  13. folder = r'V:/FM003'
  14. files = r'F5331_FM003**'
  15. paths = os.path.join(folder, files)
  16.  
  17. for counter, file in enumerate(paths):
  18. ....
  19.  
  20. os.listdir("V:/FM003")
  21. results = pd.DataFrame([])
  22. for counter, file in enumerate(glob.glob("F5331_FM003**")):
  23. namedf = pd.read_csv(file, header=[0], skiprows=[0,1,2,3,4,5,6],
  24. index_col=[0], usecols= [0,1])
  25. results = results.append(namedf)
  26. print(namedf)
Add Comment
Please, Sign In to add comment