Commit 17474d90 authored by Florent Chehab's avatar Florent Chehab
Browse files

Tweaks

parent 6ad4ec3c
......@@ -128,7 +128,8 @@
" \n",
" d = self.DATA\n",
" self.nb_uvs = len(d.index)\n",
" taux_eval = d.loc[:, ('nb_evals','nb_etu_registered')].min(axis=1)/d['nb_etu_registered'] # TODO change\n",
" taux_eval = d['nb_evals']/(d['nb_etu_registered']-d['nb_etu_abs'])\n",
" taux_eval[taux_eval>1]=1\n",
" taux_eval = taux_eval.fillna(1) # Sometimes there 0 students in a course but there are evaluations\n",
" self.taux_eval_arr = 100 * taux_eval\n",
" self.taux_eval = sum(self.taux_eval_arr) / self.nb_uvs\n",
......@@ -596,7 +597,7 @@
"metadata": {},
"outputs": [],
"source": [
"Markdown(\"_(\"+MAIN_SEMESTER+\")_\")"
"Markdown(\"_Pour rappel, le semestre d'étude principal est : {}._\".format(MAIN_SEMESTER))"
]
},
{
......@@ -607,7 +608,11 @@
"source": [
"HTML(\"\"\"\n",
"<div class=\"alert alert-success\">\n",
" Vous pouvez cliquez sur les graphes pour avoir le détail\n",
" <strong>\n",
" Pour les graphiques ci-dessous,\n",
" en cliquant sur les points, la visualisation en détail d'une UV ce mettra automatiquement à jour\n",
" avec les données correspondantes.\n",
" </strong>\n",
"</div>\n",
"\"\"\")"
]
......@@ -637,7 +642,7 @@
" go.Scatter(\n",
" x=tmp1.sort_values().index,\n",
" y=tmp1.sort_values()*100,\n",
" name='--'\n",
" name='<b>--</b>'\n",
" ) \n",
")\n",
" \n",
......@@ -646,18 +651,18 @@
" go.Scatter(\n",
" x=tmp2[tmp1.sort_values().index].index,\n",
" y=tmp2[tmp1.sort_values().index]*100,\n",
" name=\"-- ou -\"\n",
" name=\"<b>-</b> ou <b>--</b>\"\n",
" ) \n",
")\n",
"\n",
"layout = go.Layout(\n",
" title = \"Visualisation du pourcentage d'avis négatifs -- et (- ou --) pour la question 10\",\n",
" title = \"Visualisation du pourcentage d'avis négatifs <b>--</b> et (<b>-</b> ou <b>--</b>) pour la question 10\",\n",
" yaxis=dict(\n",
" range=SCALE_PERCENTAGE,\n",
" title=\"Pourcentage\",\n",
" ),\n",
" xaxis=dict(\n",
" title=\"UVs triées selon le pourcentage d'avis -- à la question 10\",\n",
" title=\"UVs triées selon le pourcentage d'avis <b>--</b> à la question 10\",\n",
" )\n",
")\n",
"\n",
......@@ -818,7 +823,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"script = open('./src/display_uv.html').read() + open('./src/go_to_uv.html').read() \n",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment