Compare commits

...

2 Commits

View File

@ -237,7 +237,9 @@ def update_final_scores_hist(data):
return [{}] return [{}]
ranges = np.linspace( 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) bins = pd.cut(assessment_scores["Note"], ranges)
assessment_scores["Bin"] = bins assessment_scores["Bin"] = bins
@ -293,11 +295,11 @@ def update_competence_fig(data):
pt.loc[(str(i), "", ""), :] = "" pt.loc[(str(i), "", ""), :] = ""
pt.sort_index(inplace=True) pt.sort_index(inplace=True)
index = ( index = (
pt.index.get_level_values(0) pt.index.get_level_values(0).map(str)
+ ":" + ":"
+ pt.index.get_level_values(1) + pt.index.get_level_values(1).map(str)
+ " " + " "
+ pt.index.get_level_values(2) + pt.index.get_level_values(2).map(str)
) )
fig = go.Figure() fig = go.Figure()