When opening a CSV file, the column of integers is being converted to a string value (\'1\', \'23\', etc.). What\'s the best way to loop through to convert these back to intege
If the CSV has headers, I would suggest using csv.DictReader. With this you can do:
csv.DictReader
with open('C:/Python27/testweight.csv', 'rb') as f: reader = csv.DictReader(f) for row in reader: integer = int(row['Name of Column'])