Guest User

Untitled

a guest
Feb 13th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. columns = ['Passed',
  2. 'Failed',
  3. 'Blocked',
  4. 'In Progress',
  5. 'Not_Implemented',
  6. 'Not Applicable',
  7. 'Clarification Opened',
  8. 'Untested']
  9.  
  10. path = "C:\Users\gomathis\Downloads\week_071.csv" # we'll use this later
  11.  
  12. import csv
  13. with open(path, 'r') as f:
  14. reader = csv.DictReader(f)
  15. df_columns = reader.fieldnames
  16.  
  17. df = pd.read_csv(path, use_cols=set(columns).intersection(df_columns))
Add Comment
Please, Sign In to add comment