daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top