I seem to be having problems with summing all the values in a .csv file with the following format:
3.2323232312 7.5345345675 3.3423565624 etc...
I have opened this with a spreadsheet at it seems the floats are all in column and each number is on a different row.
with open("E1.csv", "rb") as ins: for row in csv.reader(ins): print sum(map(int, row))
This gives the following error:
ValueError: invalid literal for int() with base 10: "0.2035..."
I would really appreciate some help, thanks.