Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- columns = ['Passed',
- 'Failed',
- 'Blocked',
- 'In Progress',
- 'Not_Implemented',
- 'Not Applicable',
- 'Clarification Opened',
- 'Untested']
- path = "C:\Users\gomathis\Downloads\week_071.csv" # we'll use this later
- import csv
- with open(path, 'r') as f:
- reader = csv.DictReader(f)
- df_columns = reader.fieldnames
- df = pd.read_csv(path, use_cols=set(columns).intersection(df_columns))
Add Comment
Please, Sign In to add comment