Fix: missing category (0) in final_score plot

This commit is contained in:
Bertrand Benjamin 2021-01-17 22:26:16 +01:00
parent 4f14e3518c
commit 7955b989b4

View File

@ -237,7 +237,9 @@ def update_final_scores_hist(data):
return [{}]
ranges = np.linspace(
0, assessment_scores.Bareme.max(), int(assessment_scores.Bareme.max() * 2 + 1)
-0.5,
assessment_scores.Bareme.max(),
int(assessment_scores.Bareme.max() * 2 + 2),
)
bins = pd.cut(assessment_scores["Note"], ranges)
assessment_scores["Bin"] = bins