I have a csv file like this (name,floatNumber):
quirrell,0,000281885
flamel,0,000175286
quirrells,0,000154252
I would like to get from it all the float numbers.
for filename in os.listdir('output'):
with open("output/"+filename, 'rt') as csvfile:
readCSV = csv.reader(csvfile, delimiter=',')
for row in readCSV:
print(row[0],row[1],row[2])
Using delimiter=',', I have this output
quirrell 0 000281885
flamel 0 000175286
quirrells 0 000154252
where the number is splitted. How can I get this output and put all the float inside some variables?
quirrell, 0,000281885
flamel 0,000175286
quirrells 0,000154252