Change int to float
This commit is contained in:
parent
7c0a8de154
commit
9834a0424f
4
pralo.py
4
pralo.py
@ -30,8 +30,8 @@ def extrait_from_file(file_name):
|
|||||||
reader = csv.reader(file, delimiter = ",")
|
reader = csv.reader(file, delimiter = ",")
|
||||||
compte = list(reader)
|
compte = list(reader)
|
||||||
for i in compte[1:]:
|
for i in compte[1:]:
|
||||||
i[1] = int(i[1])
|
i[1] = float(i[1])
|
||||||
i[2] = int(i[2])
|
i[2] = float(i[2])
|
||||||
return compte
|
return compte
|
||||||
finally:
|
finally:
|
||||||
file.close()
|
file.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user