I have a file with the following format:
2015-11-01|00:00:00|1
2015-11-02|23:00:00|11
2015-11-03|07:00:00|12
2015-11-04|09:00:00|20
I'd like to be able to convert these lines into list format so I can execute the fields like below:
for date, hour, count in arr:
incoming_images.write(row, col, date)
incoming_images.write(row, col + 1, hour)
incoming_images.write(row, col + 2, count)
row +=1
I need help figuring out how to create this "arr" (if possible).