Created
February 22, 2019 17:16
-
-
Save louissimps/6b8d7156c01800018b20c09590cca4b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python generates bytes for csv this will remove the stupid b' before everything | |
with io.open(FILE_NAME, encoding='utf-8') as f: | |
reader = csv.DictReader( f, fieldnames = ("ID","Control Description","Low","Moderate","High")) | |
for row in reader: | |
for s in row: | |
row[s] = row[s][2:-1] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment