Guest User

Untitled

a guest
Mar 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. John Apple <-- Header Start
  2. 9/21/2005
  3. Duration: 00:00:06 <-- Header End
  4.  
  5. Time Body_Temp Thermistor <-- Index
  6. 00:00:00 0.00
  7. 00:00:01 88.07
  8. 00:00:02 88.07
  9. 00:00:03 83.90
  10. 00:00:04 104.35
  11. 00:00:05 85.43
  12. 00:00:06 85.43
  13.  
  14. file = r'Alpha.csv'
  15. meta = pd.read_csv(file, nrows=4, header=None)
  16. df = pd.read_csv(file, skiprows=4)
  17. uncommon = df.loc[(df['Temp'] >= 100)]
  18.  
  19. with open('Dummy.csv', 'w') as out:
  20. meta.to_csv(out, index=False, header=False)
  21. uncommon.to_csv(out, sep='t', index=False)
Add Comment
Please, Sign In to add comment