I have a csv file given in seconds formatted like so:
0
1
0
0
0
0
1
My question is how do I use a for loop to convert the data in the csv file(seconds) to minutes and hours and write it back to the same csv file in a different column. Here is what I have so far:
data[]
input_file = open("geiger.csv", "r")
for line in input_file:
data.append(int(line))
#Here needs to be modulus of data in sec to get minutes and hours
#writing back to csv file
I am not sure what to do for the commented sections. Any help is appreciated. Thanks!