From 9834a0424f39528e06ab3e5d108aeaf784a94989 Mon Sep 17 00:00:00 2001 From: lafrite Date: Mon, 27 May 2013 20:30:31 +0200 Subject: [PATCH] Change int to float --- pralo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pralo.py b/pralo.py index 208ac32..9ac64a4 100755 --- a/pralo.py +++ b/pralo.py @@ -30,8 +30,8 @@ def extrait_from_file(file_name): reader = csv.reader(file, delimiter = ",") compte = list(reader) for i in compte[1:]: - i[1] = int(i[1]) - i[2] = int(i[2]) + i[1] = float(i[1]) + i[2] = float(i[2]) return compte finally: file.close()