From 7ad5e59e28dad528298fc7ed8e2ce398129b6dfb Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand Date: Tue, 31 Jan 2017 14:06:45 +0300 Subject: [PATCH] Barem format for ploting --- notes_tools/tools/marks_plottings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes_tools/tools/marks_plottings.py b/notes_tools/tools/marks_plottings.py index 97f4cf5..e3e7d22 100644 --- a/notes_tools/tools/marks_plottings.py +++ b/notes_tools/tools/marks_plottings.py @@ -30,7 +30,7 @@ def marks_hist(df): :param df: Dataframe with "Mark" and "Bareme" columns. If it has "Nom" column, it is use in title. """ bareme = df["Bareme"].max() - bins = bareme*2 + bins = int(bareme*2) ax = df["Mark"].hist(bins = bins, range=(0,bareme))