2394 lines
130 KiB
Plaintext
2394 lines
130 KiB
Plaintext
|
{
|
||
|
"cells": [
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 1,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"import pandas as pd\n",
|
||
|
"import numpy as np\n",
|
||
|
"%matplotlib inline\n",
|
||
|
"import matplotlib.pyplot as plt\n",
|
||
|
"plt.style.use(\"seaborn-notebook\")\n",
|
||
|
"#plt.style.use('ggplot')\n",
|
||
|
"from ipywidgets import interact, interactive, fixed\n",
|
||
|
"import ipywidgets as widgets\n",
|
||
|
"from IPython.display import display\n",
|
||
|
"import seaborn as sns\n",
|
||
|
"cm = sns.light_palette(\"green\", as_cmap=True)\n",
|
||
|
"\n",
|
||
|
"from notes_tools.tools import extract_flat_marks, get_class_ws, digest_flat_df, term, evaluation\n",
|
||
|
"from notes_tools.tools.bareme import tranform_scale\n",
|
||
|
"from notes_tools.tools.marks_plottings import *"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 2,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/html": [
|
||
|
"<div id=\"my_id_menu_nb\">run previous cell, wait for 2 seconds</div>\n",
|
||
|
"<script>\n",
|
||
|
"function repeat_indent_string(n){\n",
|
||
|
" var a = \"\" ;\n",
|
||
|
" for ( ; n > 0 ; --n) {\n",
|
||
|
" a += \" \";\n",
|
||
|
" }\n",
|
||
|
" return a;\n",
|
||
|
"}\n",
|
||
|
"var update_menu_string = function(begin, lfirst, llast, sformat, send, keep_item) {\n",
|
||
|
" var anchors = document.getElementsByClassName(\"section\");\n",
|
||
|
" if (anchors.length == 0) {\n",
|
||
|
" anchors = document.getElementsByClassName(\"text_cell_render rendered_html\");\n",
|
||
|
" }\n",
|
||
|
" var i,t;\n",
|
||
|
" var text_menu = begin;\n",
|
||
|
" var text_memo = \"<pre>\\nlength:\" + anchors.length + \"\\n\";\n",
|
||
|
" var ind = \"\";\n",
|
||
|
" var memo_level = 1;\n",
|
||
|
" var href;\n",
|
||
|
" var tags = [];\n",
|
||
|
" var main_item = 0;\n",
|
||
|
" for (i = 0; i <= llast; i++) {\n",
|
||
|
" tags.push(\"h\" + i);\n",
|
||
|
" }\n",
|
||
|
"\n",
|
||
|
" for (i = 0; i < anchors.length; i++) {\n",
|
||
|
" text_memo += \"**\" + anchors[i].id + \"--\\n\";\n",
|
||
|
"\n",
|
||
|
" var child = null;\n",
|
||
|
" for(t = 0; t < tags.length; t++) {\n",
|
||
|
" var r = anchors[i].getElementsByTagName(tags[t]);\n",
|
||
|
" if (r.length > 0) {\n",
|
||
|
"child = r[0];\n",
|
||
|
"break;\n",
|
||
|
" }\n",
|
||
|
" }\n",
|
||
|
" if (child == null){\n",
|
||
|
" text_memo += \"null\\n\";\n",
|
||
|
" continue;\n",
|
||
|
" }\n",
|
||
|
" if (anchors[i].hasAttribute(\"id\")) {\n",
|
||
|
" // when converted in RST\n",
|
||
|
" href = anchors[i].id;\n",
|
||
|
" text_memo += \"#1-\" + href;\n",
|
||
|
" // passer à child suivant (le chercher)\n",
|
||
|
" }\n",
|
||
|
" else if (child.hasAttribute(\"id\")) {\n",
|
||
|
" // in a notebook\n",
|
||
|
" href = child.id;\n",
|
||
|
" text_memo += \"#2-\" + href;\n",
|
||
|
" }\n",
|
||
|
" else {\n",
|
||
|
" text_memo += \"#3-\" + \"*\" + \"\\n\";\n",
|
||
|
" continue;\n",
|
||
|
" }\n",
|
||
|
" var title = child.textContent;\n",
|
||
|
" var level = parseInt(child.tagName.substring(1,2));\n",
|
||
|
"\n",
|
||
|
" text_memo += \"--\" + level + \"?\" + lfirst + \"--\" + title + \"\\n\";\n",
|
||
|
"\n",
|
||
|
" if ((level < lfirst) || (level > llast)) {\n",
|
||
|
" continue ;\n",
|
||
|
" }\n",
|
||
|
" if (title.endsWith('¶')) {\n",
|
||
|
" title = title.substring(0,title.length-1).replace(\"<\", \"<\").replace(\">\", \">\").replace(\"&\", \"&\")\n",
|
||
|
" }\n",
|
||
|
"\n",
|
||
|
" if (title.length == 0) {\n",
|
||
|
" continue;\n",
|
||
|
" }\n",
|
||
|
"\n",
|
||
|
" while (level < memo_level) {\n",
|
||
|
" text_menu += \"</ul>\\n\";\n",
|
||
|
" memo_level -= 1;\n",
|
||
|
" }\n",
|
||
|
" if (level == lfirst) {\n",
|
||
|
" main_item += 1;\n",
|
||
|
" }\n",
|
||
|
" if (keep_item != -1 && main_item != keep_item + 1) {\n",
|
||
|
" // alert(main_item + \" - \" + level + \" - \" + keep_item);\n",
|
||
|
" continue;\n",
|
||
|
" }\n",
|
||
|
" while (level > memo_level) {\n",
|
||
|
" text_menu += \"<ul>\\n\";\n",
|
||
|
" memo_level += 1;\n",
|
||
|
" }\n",
|
||
|
" text_menu += repeat_indent_string(level-2) + sformat.replace(\"__HREF__\", href).replace(\"__TITLE__\", title);\n",
|
||
|
" }\n",
|
||
|
" while (1 < memo_level) {\n",
|
||
|
" text_menu += \"</ul>\\n\";\n",
|
||
|
" memo_level -= 1;\n",
|
||
|
" }\n",
|
||
|
" text_menu += send;\n",
|
||
|
" //text_menu += \"\\n\" + text_memo;\n",
|
||
|
" return text_menu;\n",
|
||
|
"};\n",
|
||
|
"var update_menu = function() {\n",
|
||
|
" var sbegin = \"\";\n",
|
||
|
" var sformat = '<li><a href=\"#__HREF__\">__TITLE__</a></li>';\n",
|
||
|
" var send = \"\";\n",
|
||
|
" var keep_item = -1;\n",
|
||
|
" var text_menu = update_menu_string(sbegin, 2, 4, sformat, send, keep_item);\n",
|
||
|
" var menu = document.getElementById(\"my_id_menu_nb\");\n",
|
||
|
" menu.innerHTML=text_menu;\n",
|
||
|
"};\n",
|
||
|
"window.setTimeout(update_menu,2000);\n",
|
||
|
" </script>"
|
||
|
],
|
||
|
"text/plain": [
|
||
|
"<IPython.core.display.HTML object>"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 2,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"from jyquickhelper import add_notebook_menu\n",
|
||
|
"add_notebook_menu()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 3,
|
||
|
"metadata": {
|
||
|
"collapsed": true
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"ws = get_class_ws(\"312\")\n",
|
||
|
"flat = extract_flat_marks(ws)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 4,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"array(['DM1', 'DS1', 'DS2', 'DM2', 'DS3', 'DS5', 'DNB Blanc 1', 'DM3',\n",
|
||
|
" 'Bbmars', 'ConnT1', 'ConnT2', 'ConnT3'], dtype=object)"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 4,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"flat[\"Nom\"].unique()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"# Trimestre 1"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"# Trimestre 2"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 5,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.virtualenvs/enseignement/lib/python3.6/site-packages/pandas/core/generic.py:3295: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" self._update_inplace(new_data)\n",
|
||
|
"The note (2.5) is greated than the rating scale (2.0) at Note 2.5\n",
|
||
|
"Niveau 0\n",
|
||
|
"Bareme 2\n",
|
||
|
"Name: 567, dtype: object\n",
|
||
|
"The note (2.5) is greated than the rating scale (2.0) at Note 2.5\n",
|
||
|
"Niveau 0\n",
|
||
|
"Bareme 2\n",
|
||
|
"Name: 573, dtype: object\n",
|
||
|
"The note (2.5) is greated than the rating scale (2.0) at Note 2.5\n",
|
||
|
"Niveau 0\n",
|
||
|
"Bareme 2\n",
|
||
|
"Name: 574, dtype: object\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:484: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Mark\"] = compute_marks(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:485: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Level\"] = compute_level(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:486: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Latex_rep\"] = compute_latex_rep(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:487: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Normalized\"] = compute_normalized(df)\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"array(['DS3', 'DS5', 'DNB Blanc 1', 'ConnT2'], dtype=object)"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 5,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"flat_T2 = flat[flat[\"Trimestre\"] == 2]\n",
|
||
|
"quest_T2, exo_T2, eval_T2 = digest_flat_df(flat_T2)\n",
|
||
|
"flat_T2[\"Nom\"].unique()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## DS3"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 6,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.virtualenvs/enseignement/lib/python3.6/site-packages/pandas/core/generic.py:3295: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" self._update_inplace(new_data)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:484: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Mark\"] = compute_marks(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:485: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Level\"] = compute_level(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:486: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Latex_rep\"] = compute_latex_rep(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:487: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Normalized\"] = compute_normalized(df)\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"(array(['2016-12-03T00:00:00.000000000'], dtype='datetime64[ns]'),\n",
|
||
|
" array([ 38.]))"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 6,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"ds3_flat = flat_T2[flat_T2[\"Nom\"]==\"DS3\"]\n",
|
||
|
"ds3_quest, ds3_exo, ds3_eval = digest_flat_df(ds3_flat)\n",
|
||
|
"ds3_eval[\"Date\"].unique(), ds3_eval[\"Bareme\"].unique()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 7,
|
||
|
"metadata": {
|
||
|
"collapsed": false,
|
||
|
"scrolled": true
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/html": [
|
||
|
"<div>\n",
|
||
|
"<table border=\"1\" class=\"dataframe\">\n",
|
||
|
" <thead>\n",
|
||
|
" <tr style=\"text-align: right;\">\n",
|
||
|
" <th></th>\n",
|
||
|
" <th>Eleve</th>\n",
|
||
|
" <th>Mark_barem</th>\n",
|
||
|
" </tr>\n",
|
||
|
" </thead>\n",
|
||
|
" <tbody>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>0</th>\n",
|
||
|
" <td>ABDALLAH Elza</td>\n",
|
||
|
" <td>18 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>1</th>\n",
|
||
|
" <td>ABDALLAH Nourayina</td>\n",
|
||
|
" <td>12 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>2</th>\n",
|
||
|
" <td>ABDALLAH Roukia</td>\n",
|
||
|
" <td>9,5 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>3</th>\n",
|
||
|
" <td>AHAMADI Laila</td>\n",
|
||
|
" <td>21,5 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>4</th>\n",
|
||
|
" <td>AHAMADI Satti</td>\n",
|
||
|
" <td>19,5 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>5</th>\n",
|
||
|
" <td>AHMED Nachmie</td>\n",
|
||
|
" <td>15,5 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>6</th>\n",
|
||
|
" <td>ALI ABDALLAH Raphael</td>\n",
|
||
|
" <td>15,5 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>7</th>\n",
|
||
|
" <td>ATTOUMANE Nasrati</td>\n",
|
||
|
" <td>21 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>8</th>\n",
|
||
|
" <td>ATTOUMANE Nedjima</td>\n",
|
||
|
" <td>22 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>9</th>\n",
|
||
|
" <td>DARKAOUI Issouf</td>\n",
|
||
|
" <td>10,5 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>10</th>\n",
|
||
|
" <td>DHOIMIR Hidayat</td>\n",
|
||
|
" <td>15 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>11</th>\n",
|
||
|
" <td>DJAMAL Hounaissati</td>\n",
|
||
|
" <td>9,5 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>12</th>\n",
|
||
|
" <td>DJANFAR Houmadi</td>\n",
|
||
|
" <td>4 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>13</th>\n",
|
||
|
" <td>FAIZ Aoufi Youssouf</td>\n",
|
||
|
" <td>10,5 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>14</th>\n",
|
||
|
" <td>HAMZA El-Hadji</td>\n",
|
||
|
" <td>20,5 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>15</th>\n",
|
||
|
" <td>HOUFRANE Soirta</td>\n",
|
||
|
" <td>19 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>16</th>\n",
|
||
|
" <td>IBRAHIM Rouiyati</td>\n",
|
||
|
" <td>17 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>17</th>\n",
|
||
|
" <td>ISSOUF Toifia</td>\n",
|
||
|
" <td>18 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>18</th>\n",
|
||
|
" <td>MOADJO Hachimia</td>\n",
|
||
|
" <td>11,5 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>19</th>\n",
|
||
|
" <td>MOHAMED Abderemane</td>\n",
|
||
|
" <td>20,5 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>20</th>\n",
|
||
|
" <td>MOHAMED Nadhir-Eddine</td>\n",
|
||
|
" <td>21 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>21</th>\n",
|
||
|
" <td>SAID Fatima</td>\n",
|
||
|
" <td>23,5 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>22</th>\n",
|
||
|
" <td>YOUSSOUF Ouldine</td>\n",
|
||
|
" <td>17 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" </tbody>\n",
|
||
|
"</table>\n",
|
||
|
"</div>"
|
||
|
],
|
||
|
"text/plain": [
|
||
|
" Eleve Mark_barem\n",
|
||
|
"0 ABDALLAH Elza 18 / 38\n",
|
||
|
"1 ABDALLAH Nourayina 12 / 38\n",
|
||
|
"2 ABDALLAH Roukia 9,5 / 38\n",
|
||
|
"3 AHAMADI Laila 21,5 / 38\n",
|
||
|
"4 AHAMADI Satti 19,5 / 38\n",
|
||
|
"5 AHMED Nachmie 15,5 / 38\n",
|
||
|
"6 ALI ABDALLAH Raphael 15,5 / 38\n",
|
||
|
"7 ATTOUMANE Nasrati 21 / 38\n",
|
||
|
"8 ATTOUMANE Nedjima 22 / 38\n",
|
||
|
"9 DARKAOUI Issouf 10,5 / 38\n",
|
||
|
"10 DHOIMIR Hidayat 15 / 38\n",
|
||
|
"11 DJAMAL Hounaissati 9,5 / 38\n",
|
||
|
"12 DJANFAR Houmadi 4 / 38\n",
|
||
|
"13 FAIZ Aoufi Youssouf 10,5 / 38\n",
|
||
|
"14 HAMZA El-Hadji 20,5 / 38\n",
|
||
|
"15 HOUFRANE Soirta 19 / 38\n",
|
||
|
"16 IBRAHIM Rouiyati 17 / 38\n",
|
||
|
"17 ISSOUF Toifia 18 / 38\n",
|
||
|
"18 MOADJO Hachimia 11,5 / 38\n",
|
||
|
"19 MOHAMED Abderemane 20,5 / 38\n",
|
||
|
"20 MOHAMED Nadhir-Eddine 21 / 38\n",
|
||
|
"21 SAID Fatima 23,5 / 38\n",
|
||
|
"22 YOUSSOUF Ouldine 17 / 38"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 7,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"ds3_eval[[\"Eleve\", \"Mark_barem\"]]"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## DS5"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 8,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.virtualenvs/enseignement/lib/python3.6/site-packages/pandas/core/generic.py:3295: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" self._update_inplace(new_data)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:484: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Mark\"] = compute_marks(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:485: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Level\"] = compute_level(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:486: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Latex_rep\"] = compute_latex_rep(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:487: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Normalized\"] = compute_normalized(df)\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"(array(['2017-01-25T00:00:00.000000000'], dtype='datetime64[ns]'),\n",
|
||
|
" array([ 20.]))"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 8,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"ds5_flat = flat_T2[flat_T2[\"Nom\"]==\"DS5\"]\n",
|
||
|
"ds5_quest, ds5_exo, ds5_eval = digest_flat_df(ds5_flat)\n",
|
||
|
"ds5_eval[\"Date\"].unique(), ds5_eval[\"Bareme\"].unique()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 9,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"count 24.00\n",
|
||
|
"mean 9.00\n",
|
||
|
"std 2.23\n",
|
||
|
"min 5.00\n",
|
||
|
"25% 7.38\n",
|
||
|
"50% 8.75\n",
|
||
|
"75% 11.00\n",
|
||
|
"max 13.00\n",
|
||
|
"Name: Mark, dtype: float64"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 9,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"ds5_eval[\"Mark\"].describe()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 10,
|
||
|
"metadata": {
|
||
|
"collapsed": false,
|
||
|
"scrolled": true
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/html": [
|
||
|
"<div>\n",
|
||
|
"<table border=\"1\" class=\"dataframe\">\n",
|
||
|
" <thead>\n",
|
||
|
" <tr style=\"text-align: right;\">\n",
|
||
|
" <th></th>\n",
|
||
|
" <th>Eleve</th>\n",
|
||
|
" <th>Mark_barem</th>\n",
|
||
|
" </tr>\n",
|
||
|
" </thead>\n",
|
||
|
" <tbody>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>0</th>\n",
|
||
|
" <td>ABDALLAH Elza</td>\n",
|
||
|
" <td>9 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>1</th>\n",
|
||
|
" <td>ABDALLAH Nourayina</td>\n",
|
||
|
" <td>6 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>2</th>\n",
|
||
|
" <td>ABDALLAH Roukia</td>\n",
|
||
|
" <td>8 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>3</th>\n",
|
||
|
" <td>AHAMADI Laila</td>\n",
|
||
|
" <td>11,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>4</th>\n",
|
||
|
" <td>AHAMADI Satti</td>\n",
|
||
|
" <td>8 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>5</th>\n",
|
||
|
" <td>AHAMED El-Fahad</td>\n",
|
||
|
" <td>7 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>6</th>\n",
|
||
|
" <td>AHMED Nachmie</td>\n",
|
||
|
" <td>8 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>7</th>\n",
|
||
|
" <td>ALI ABDALLAH Raphael</td>\n",
|
||
|
" <td>6,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>8</th>\n",
|
||
|
" <td>ATTOUMANE Nasrati</td>\n",
|
||
|
" <td>8,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>9</th>\n",
|
||
|
" <td>ATTOUMANE Nedjima</td>\n",
|
||
|
" <td>12,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>10</th>\n",
|
||
|
" <td>DARKAOUI Issouf</td>\n",
|
||
|
" <td>13 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>11</th>\n",
|
||
|
" <td>DHOIMIR Hidayat</td>\n",
|
||
|
" <td>9,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>12</th>\n",
|
||
|
" <td>DJAMAL Hounaissati</td>\n",
|
||
|
" <td>6,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>13</th>\n",
|
||
|
" <td>DJANFAR Houmadi</td>\n",
|
||
|
" <td>5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>14</th>\n",
|
||
|
" <td>FAIZ Aoufi Youssouf</td>\n",
|
||
|
" <td>7,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>15</th>\n",
|
||
|
" <td>HAMZA El-Hadji</td>\n",
|
||
|
" <td>11,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>16</th>\n",
|
||
|
" <td>HOUFRANE Soirta</td>\n",
|
||
|
" <td>10 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>17</th>\n",
|
||
|
" <td>IBRAHIM Rouiyati</td>\n",
|
||
|
" <td>11 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>18</th>\n",
|
||
|
" <td>ISSOUF Toifia</td>\n",
|
||
|
" <td>8 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>19</th>\n",
|
||
|
" <td>MOADJO Hachimia</td>\n",
|
||
|
" <td>6,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>20</th>\n",
|
||
|
" <td>MOHAMED Abderemane</td>\n",
|
||
|
" <td>9 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>21</th>\n",
|
||
|
" <td>MOHAMED Nadhir-Eddine</td>\n",
|
||
|
" <td>11 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>22</th>\n",
|
||
|
" <td>SAID Fatima</td>\n",
|
||
|
" <td>11,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>23</th>\n",
|
||
|
" <td>YOUSSOUF Ouldine</td>\n",
|
||
|
" <td>11 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" </tbody>\n",
|
||
|
"</table>\n",
|
||
|
"</div>"
|
||
|
],
|
||
|
"text/plain": [
|
||
|
" Eleve Mark_barem\n",
|
||
|
"0 ABDALLAH Elza 9 / 20\n",
|
||
|
"1 ABDALLAH Nourayina 6 / 20\n",
|
||
|
"2 ABDALLAH Roukia 8 / 20\n",
|
||
|
"3 AHAMADI Laila 11,5 / 20\n",
|
||
|
"4 AHAMADI Satti 8 / 20\n",
|
||
|
"5 AHAMED El-Fahad 7 / 20\n",
|
||
|
"6 AHMED Nachmie 8 / 20\n",
|
||
|
"7 ALI ABDALLAH Raphael 6,5 / 20\n",
|
||
|
"8 ATTOUMANE Nasrati 8,5 / 20\n",
|
||
|
"9 ATTOUMANE Nedjima 12,5 / 20\n",
|
||
|
"10 DARKAOUI Issouf 13 / 20\n",
|
||
|
"11 DHOIMIR Hidayat 9,5 / 20\n",
|
||
|
"12 DJAMAL Hounaissati 6,5 / 20\n",
|
||
|
"13 DJANFAR Houmadi 5 / 20\n",
|
||
|
"14 FAIZ Aoufi Youssouf 7,5 / 20\n",
|
||
|
"15 HAMZA El-Hadji 11,5 / 20\n",
|
||
|
"16 HOUFRANE Soirta 10 / 20\n",
|
||
|
"17 IBRAHIM Rouiyati 11 / 20\n",
|
||
|
"18 ISSOUF Toifia 8 / 20\n",
|
||
|
"19 MOADJO Hachimia 6,5 / 20\n",
|
||
|
"20 MOHAMED Abderemane 9 / 20\n",
|
||
|
"21 MOHAMED Nadhir-Eddine 11 / 20\n",
|
||
|
"22 SAID Fatima 11,5 / 20\n",
|
||
|
"23 YOUSSOUF Ouldine 11 / 20"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 10,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"ds5_eval[[\"Eleve\", \"Mark_barem\"]]"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## ConnT2"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 11,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.virtualenvs/enseignement/lib/python3.6/site-packages/pandas/core/generic.py:3295: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" self._update_inplace(new_data)\n",
|
||
|
"The note (2.5) is greated than the rating scale (2.0) at Note 2.5\n",
|
||
|
"Niveau 0\n",
|
||
|
"Bareme 2\n",
|
||
|
"Name: 567, dtype: object\n",
|
||
|
"The note (2.5) is greated than the rating scale (2.0) at Note 2.5\n",
|
||
|
"Niveau 0\n",
|
||
|
"Bareme 2\n",
|
||
|
"Name: 573, dtype: object\n",
|
||
|
"The note (2.5) is greated than the rating scale (2.0) at Note 2.5\n",
|
||
|
"Niveau 0\n",
|
||
|
"Bareme 2\n",
|
||
|
"Name: 574, dtype: object\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:484: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Mark\"] = compute_marks(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:485: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Level\"] = compute_level(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:486: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Latex_rep\"] = compute_latex_rep(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:487: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Normalized\"] = compute_normalized(df)\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"(array(['Trimestre'], dtype=object),\n",
|
||
|
" array([ 25., 29., 16., 21., 8., 24.]))"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 11,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"connT2_flat = flat_T2[flat_T2[\"Nom\"]=='ConnT2']\n",
|
||
|
"connT2_quest, connT2_exo, connT2_eval = digest_flat_df(connT2_flat)\n",
|
||
|
"connT2_eval[\"Date\"].unique(), connT2_eval[\"Bareme\"].unique()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 12,
|
||
|
"metadata": {
|
||
|
"collapsed": true
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"connT2_eval = tranform_scale(connT2_eval, 20, \"prop\")"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 13,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"count 24.00\n",
|
||
|
"mean 11.88\n",
|
||
|
"std 3.95\n",
|
||
|
"min 2.50\n",
|
||
|
"25% 9.75\n",
|
||
|
"50% 12.25\n",
|
||
|
"75% 14.00\n",
|
||
|
"max 18.50\n",
|
||
|
"Name: Mark, dtype: float64"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 13,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"connT2_eval[\"Mark\"].describe()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 14,
|
||
|
"metadata": {
|
||
|
"collapsed": false,
|
||
|
"scrolled": true
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/html": [
|
||
|
"<div>\n",
|
||
|
"<table border=\"1\" class=\"dataframe\">\n",
|
||
|
" <thead>\n",
|
||
|
" <tr style=\"text-align: right;\">\n",
|
||
|
" <th></th>\n",
|
||
|
" <th>Eleve</th>\n",
|
||
|
" <th>Mark_barem</th>\n",
|
||
|
" </tr>\n",
|
||
|
" </thead>\n",
|
||
|
" <tbody>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>0</th>\n",
|
||
|
" <td>ABDALLAH Elza</td>\n",
|
||
|
" <td>16 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>1</th>\n",
|
||
|
" <td>ABDALLAH Nourayina</td>\n",
|
||
|
" <td>11 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>2</th>\n",
|
||
|
" <td>ABDALLAH Roukia</td>\n",
|
||
|
" <td>10 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>3</th>\n",
|
||
|
" <td>AHAMADI Laila</td>\n",
|
||
|
" <td>16,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>4</th>\n",
|
||
|
" <td>AHAMADI Satti</td>\n",
|
||
|
" <td>11 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>5</th>\n",
|
||
|
" <td>AHAMED El-Fahad</td>\n",
|
||
|
" <td>9 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>6</th>\n",
|
||
|
" <td>AHMED Nachmie</td>\n",
|
||
|
" <td>10 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>7</th>\n",
|
||
|
" <td>ALI ABDALLAH Raphael</td>\n",
|
||
|
" <td>10,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>8</th>\n",
|
||
|
" <td>ATTOUMANE Nasrati</td>\n",
|
||
|
" <td>18 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>9</th>\n",
|
||
|
" <td>ATTOUMANE Nedjima</td>\n",
|
||
|
" <td>15,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>10</th>\n",
|
||
|
" <td>DARKAOUI Issouf</td>\n",
|
||
|
" <td>13 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>11</th>\n",
|
||
|
" <td>DHOIMIR Hidayat</td>\n",
|
||
|
" <td>8 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>12</th>\n",
|
||
|
" <td>DJAMAL Hounaissati</td>\n",
|
||
|
" <td>6 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>13</th>\n",
|
||
|
" <td>DJANFAR Houmadi</td>\n",
|
||
|
" <td>2,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>14</th>\n",
|
||
|
" <td>FAIZ Aoufi Youssouf</td>\n",
|
||
|
" <td>6,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>15</th>\n",
|
||
|
" <td>HAMZA El-Hadji</td>\n",
|
||
|
" <td>13 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>16</th>\n",
|
||
|
" <td>HOUFRANE Soirta</td>\n",
|
||
|
" <td>13,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>17</th>\n",
|
||
|
" <td>IBRAHIM Rouiyati</td>\n",
|
||
|
" <td>13 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>18</th>\n",
|
||
|
" <td>ISSOUF Toifia</td>\n",
|
||
|
" <td>9 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>19</th>\n",
|
||
|
" <td>MOADJO Hachimia</td>\n",
|
||
|
" <td>11,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>20</th>\n",
|
||
|
" <td>MOHAMED Abderemane</td>\n",
|
||
|
" <td>13,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>21</th>\n",
|
||
|
" <td>MOHAMED Nadhir-Eddine</td>\n",
|
||
|
" <td>18,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>22</th>\n",
|
||
|
" <td>SAID Fatima</td>\n",
|
||
|
" <td>16,5 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>23</th>\n",
|
||
|
" <td>YOUSSOUF Ouldine</td>\n",
|
||
|
" <td>13 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" </tbody>\n",
|
||
|
"</table>\n",
|
||
|
"</div>"
|
||
|
],
|
||
|
"text/plain": [
|
||
|
" Eleve Mark_barem\n",
|
||
|
"0 ABDALLAH Elza 16 / 20\n",
|
||
|
"1 ABDALLAH Nourayina 11 / 20\n",
|
||
|
"2 ABDALLAH Roukia 10 / 20\n",
|
||
|
"3 AHAMADI Laila 16,5 / 20\n",
|
||
|
"4 AHAMADI Satti 11 / 20\n",
|
||
|
"5 AHAMED El-Fahad 9 / 20\n",
|
||
|
"6 AHMED Nachmie 10 / 20\n",
|
||
|
"7 ALI ABDALLAH Raphael 10,5 / 20\n",
|
||
|
"8 ATTOUMANE Nasrati 18 / 20\n",
|
||
|
"9 ATTOUMANE Nedjima 15,5 / 20\n",
|
||
|
"10 DARKAOUI Issouf 13 / 20\n",
|
||
|
"11 DHOIMIR Hidayat 8 / 20\n",
|
||
|
"12 DJAMAL Hounaissati 6 / 20\n",
|
||
|
"13 DJANFAR Houmadi 2,5 / 20\n",
|
||
|
"14 FAIZ Aoufi Youssouf 6,5 / 20\n",
|
||
|
"15 HAMZA El-Hadji 13 / 20\n",
|
||
|
"16 HOUFRANE Soirta 13,5 / 20\n",
|
||
|
"17 IBRAHIM Rouiyati 13 / 20\n",
|
||
|
"18 ISSOUF Toifia 9 / 20\n",
|
||
|
"19 MOADJO Hachimia 11,5 / 20\n",
|
||
|
"20 MOHAMED Abderemane 13,5 / 20\n",
|
||
|
"21 MOHAMED Nadhir-Eddine 18,5 / 20\n",
|
||
|
"22 SAID Fatima 16,5 / 20\n",
|
||
|
"23 YOUSSOUF Ouldine 13 / 20"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 14,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"connT2_eval[[\"Eleve\", \"Mark_barem\"]]"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## DNB blanc 1"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 15,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.virtualenvs/enseignement/lib/python3.6/site-packages/pandas/core/generic.py:3295: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" self._update_inplace(new_data)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:484: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Mark\"] = compute_marks(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:485: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Level\"] = compute_level(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:486: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Latex_rep\"] = compute_latex_rep(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:487: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Normalized\"] = compute_normalized(df)\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"(array(['2017-02-08T00:00:00.000000000'], dtype='datetime64[ns]'),\n",
|
||
|
" array([ 50.]))"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 15,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"dnb1_flat = flat_T2[flat_T2[\"Nom\"]=='DNB Blanc 1']\n",
|
||
|
"dnb1_quest, dnb1_exo, dnb1_eval = digest_flat_df(dnb1_flat)\n",
|
||
|
"dnb1_eval[\"Date\"].unique(), dnb1_eval[\"Bareme\"].unique()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 16,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"count 24.00\n",
|
||
|
"mean 19.46\n",
|
||
|
"std 5.21\n",
|
||
|
"min 10.00\n",
|
||
|
"25% 15.75\n",
|
||
|
"50% 18.75\n",
|
||
|
"75% 22.25\n",
|
||
|
"max 29.00\n",
|
||
|
"Name: Mark, dtype: float64"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 16,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"dnb1_eval[\"Mark\"].describe()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 17,
|
||
|
"metadata": {
|
||
|
"collapsed": false,
|
||
|
"scrolled": true
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/html": [
|
||
|
"<div>\n",
|
||
|
"<table border=\"1\" class=\"dataframe\">\n",
|
||
|
" <thead>\n",
|
||
|
" <tr style=\"text-align: right;\">\n",
|
||
|
" <th></th>\n",
|
||
|
" <th>Eleve</th>\n",
|
||
|
" <th>Mark_barem</th>\n",
|
||
|
" </tr>\n",
|
||
|
" </thead>\n",
|
||
|
" <tbody>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>0</th>\n",
|
||
|
" <td>ABDALLAH Elza</td>\n",
|
||
|
" <td>23 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>1</th>\n",
|
||
|
" <td>ABDALLAH Nourayina</td>\n",
|
||
|
" <td>10 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>2</th>\n",
|
||
|
" <td>ABDALLAH Roukia</td>\n",
|
||
|
" <td>13 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>3</th>\n",
|
||
|
" <td>AHAMADI Laila</td>\n",
|
||
|
" <td>17 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>4</th>\n",
|
||
|
" <td>AHAMADI Satti</td>\n",
|
||
|
" <td>18,5 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>5</th>\n",
|
||
|
" <td>AHAMED El-Fahad</td>\n",
|
||
|
" <td>16 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>6</th>\n",
|
||
|
" <td>AHMED Nachmie</td>\n",
|
||
|
" <td>19 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>7</th>\n",
|
||
|
" <td>ALI ABDALLAH Raphael</td>\n",
|
||
|
" <td>18 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>8</th>\n",
|
||
|
" <td>ATTOUMANE Nasrati</td>\n",
|
||
|
" <td>22 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>9</th>\n",
|
||
|
" <td>ATTOUMANE Nedjima</td>\n",
|
||
|
" <td>21 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>10</th>\n",
|
||
|
" <td>DARKAOUI Issouf</td>\n",
|
||
|
" <td>26,5 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>11</th>\n",
|
||
|
" <td>DHOIMIR Hidayat</td>\n",
|
||
|
" <td>14 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>12</th>\n",
|
||
|
" <td>DJAMAL Hounaissati</td>\n",
|
||
|
" <td>14 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>13</th>\n",
|
||
|
" <td>DJANFAR Houmadi</td>\n",
|
||
|
" <td>13 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>14</th>\n",
|
||
|
" <td>FAIZ Aoufi Youssouf</td>\n",
|
||
|
" <td>15 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>15</th>\n",
|
||
|
" <td>HAMZA El-Hadji</td>\n",
|
||
|
" <td>29 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>16</th>\n",
|
||
|
" <td>HOUFRANE Soirta</td>\n",
|
||
|
" <td>26 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>17</th>\n",
|
||
|
" <td>IBRAHIM Rouiyati</td>\n",
|
||
|
" <td>18 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>18</th>\n",
|
||
|
" <td>ISSOUF Toifia</td>\n",
|
||
|
" <td>19 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>19</th>\n",
|
||
|
" <td>MOADJO Hachimia</td>\n",
|
||
|
" <td>18 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>20</th>\n",
|
||
|
" <td>MOHAMED Abderemane</td>\n",
|
||
|
" <td>29 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>21</th>\n",
|
||
|
" <td>MOHAMED Nadhir-Eddine</td>\n",
|
||
|
" <td>22 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>22</th>\n",
|
||
|
" <td>SAID Fatima</td>\n",
|
||
|
" <td>20 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>23</th>\n",
|
||
|
" <td>YOUSSOUF Ouldine</td>\n",
|
||
|
" <td>26 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" </tbody>\n",
|
||
|
"</table>\n",
|
||
|
"</div>"
|
||
|
],
|
||
|
"text/plain": [
|
||
|
" Eleve Mark_barem\n",
|
||
|
"0 ABDALLAH Elza 23 / 50\n",
|
||
|
"1 ABDALLAH Nourayina 10 / 50\n",
|
||
|
"2 ABDALLAH Roukia 13 / 50\n",
|
||
|
"3 AHAMADI Laila 17 / 50\n",
|
||
|
"4 AHAMADI Satti 18,5 / 50\n",
|
||
|
"5 AHAMED El-Fahad 16 / 50\n",
|
||
|
"6 AHMED Nachmie 19 / 50\n",
|
||
|
"7 ALI ABDALLAH Raphael 18 / 50\n",
|
||
|
"8 ATTOUMANE Nasrati 22 / 50\n",
|
||
|
"9 ATTOUMANE Nedjima 21 / 50\n",
|
||
|
"10 DARKAOUI Issouf 26,5 / 50\n",
|
||
|
"11 DHOIMIR Hidayat 14 / 50\n",
|
||
|
"12 DJAMAL Hounaissati 14 / 50\n",
|
||
|
"13 DJANFAR Houmadi 13 / 50\n",
|
||
|
"14 FAIZ Aoufi Youssouf 15 / 50\n",
|
||
|
"15 HAMZA El-Hadji 29 / 50\n",
|
||
|
"16 HOUFRANE Soirta 26 / 50\n",
|
||
|
"17 IBRAHIM Rouiyati 18 / 50\n",
|
||
|
"18 ISSOUF Toifia 19 / 50\n",
|
||
|
"19 MOADJO Hachimia 18 / 50\n",
|
||
|
"20 MOHAMED Abderemane 29 / 50\n",
|
||
|
"21 MOHAMED Nadhir-Eddine 22 / 50\n",
|
||
|
"22 SAID Fatima 20 / 50\n",
|
||
|
"23 YOUSSOUF Ouldine 26 / 50"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 17,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"dnb1_eval[[\"Eleve\", \"Mark_barem\"]]"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {
|
||
|
"collapsed": true
|
||
|
},
|
||
|
"source": [
|
||
|
"## Bilan T2"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 18,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"array(['ABDALLAH Elza', 'ABDALLAH Nourayina', 'ABDALLAH Roukia',\n",
|
||
|
" 'ABOUDOU Faise', 'AHAMADI Laila', 'AHAMADI Satti',\n",
|
||
|
" 'AHAMED El-Fahad', 'AHMED Nachmie', 'ALI ABDALLAH Raphael',\n",
|
||
|
" 'ATTOUMANE Nasrati', 'ATTOUMANE Nedjima', 'DARKAOUI Issouf',\n",
|
||
|
" 'DHOIMIR Hidayat', 'DJAMAL Hounaissati', 'DJANFAR Houmadi',\n",
|
||
|
" 'FAIZ Aoufi Youssouf', 'HAMZA El-Hadji', 'HOUFRANE Soirta',\n",
|
||
|
" 'IBRAHIM Hindou', 'IBRAHIM Rouiyati', 'ISSOUF Toifia',\n",
|
||
|
" 'MOADJO Hachimia', 'MOHAMED Abderemane', 'MOHAMED Nadhir-Eddine',\n",
|
||
|
" 'MOUSSA Faize', 'SAID Fatima', 'SAID Ramiati', 'SAÏD Latif',\n",
|
||
|
" 'YOUSSOUF Ouldine'], dtype=object)"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 18,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"flat_T2[\"Eleve\"].unique()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 19,
|
||
|
"metadata": {
|
||
|
"collapsed": true
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"flat_AE = flat_T2[flat_T2[\"Eleve\"]=='ABDALLAH Elza']\n",
|
||
|
"quest_AE = quest_T2[quest_T2[\"Eleve\"]=='ABDALLAH Elza']"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 20,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.virtualenvs/enseignement/lib/python3.6/site-packages/pandas/core/generic.py:3295: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" self._update_inplace(new_data)\n",
|
||
|
"The note (2.5) is greated than the rating scale (2.0) at Note 2.5\n",
|
||
|
"Niveau 0\n",
|
||
|
"Bareme 2\n",
|
||
|
"Name: 567, dtype: object\n",
|
||
|
"The note (2.5) is greated than the rating scale (2.0) at Note 2.5\n",
|
||
|
"Niveau 0\n",
|
||
|
"Bareme 2\n",
|
||
|
"Name: 573, dtype: object\n",
|
||
|
"The note (2.5) is greated than the rating scale (2.0) at Note 2.5\n",
|
||
|
"Niveau 0\n",
|
||
|
"Bareme 2\n",
|
||
|
"Name: 574, dtype: object\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:484: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Mark\"] = compute_marks(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:485: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Level\"] = compute_level(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:486: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Latex_rep\"] = compute_latex_rep(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:487: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Normalized\"] = compute_normalized(df)\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"es = term.students_pov(*digest_flat_df(flat_T2))"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 21,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"ABDALLAH Elza\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"text/html": [
|
||
|
"<div>\n",
|
||
|
"<table border=\"1\" class=\"dataframe\">\n",
|
||
|
" <thead>\n",
|
||
|
" <tr style=\"text-align: right;\">\n",
|
||
|
" <th></th>\n",
|
||
|
" <th>Nom</th>\n",
|
||
|
" <th>Mark_barem</th>\n",
|
||
|
" </tr>\n",
|
||
|
" </thead>\n",
|
||
|
" <tbody>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>0</th>\n",
|
||
|
" <td>ConnT2</td>\n",
|
||
|
" <td>19,5 / 25</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>24</th>\n",
|
||
|
" <td>DNB Blanc 1</td>\n",
|
||
|
" <td>23 / 50</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>48</th>\n",
|
||
|
" <td>DS3</td>\n",
|
||
|
" <td>18 / 38</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>71</th>\n",
|
||
|
" <td>DS5</td>\n",
|
||
|
" <td>9 / 20</td>\n",
|
||
|
" </tr>\n",
|
||
|
" </tbody>\n",
|
||
|
"</table>\n",
|
||
|
"</div>"
|
||
|
],
|
||
|
"text/plain": [
|
||
|
" Nom Mark_barem\n",
|
||
|
"0 ConnT2 19,5 / 25\n",
|
||
|
"24 DNB Blanc 1 23 / 50\n",
|
||
|
"48 DS3 18 / 38\n",
|
||
|
"71 DS5 9 / 20"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.virtualenvs/enseignement/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['sans-serif'] not found. Falling back to DejaVu Sans\n",
|
||
|
" (prop.get_family(), self.defaultFamily[fontext]))\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAdEAAAF+CAYAAADdiSCgAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtcVOW+P/DPcA8BcQbEC5AB4iVSRPKGFmpXu2yOaf52\nrxSzjmX77OMlEW+cNDU1UfdOzOOFvOSpyAztZu5EK4E0+Sm52YoieE2QmwMichlm/f7w55xGYJiZ\nXLfh894vXi9nrZl5Pq795JdnrWc9SyMIggAiIiKymZPcAYiIiNSKRZSIiMhOLKJERER2YhElIiKy\nE4soERGRnVhEiYiI7OQidwAiIiIpfPDBBzh+/Dg6duyI1atXN9svCAK2bt2KEydOwN3dHW+++SZC\nQkIsfidHokRE1C7ExsZi/vz5re4/ceIESkpK8P7772Pq1KnYsmVLm9/JIkpERO1C37594eXl1er+\nnJwcPPLII9BoNAgPD8fNmzdx/fp1i9/JIkpERASgsrISfn5+ptc6nQ6VlZUWP6OKa6L97n9U7gg2\nGdC1j9wRbPbnEf3kjmCzTw6flDuCTQK8feSOYLN6g0HuCDbrodPKHcEmxVXVckew2Xvfvyfad/+R\nf+9PXvzxHiaxjiqKKBERtQ8ajUa2trVaLcrLy02vKyoqoNVa/qWMp3OJiIgAREdH46effoIgCDh7\n9iw8PT3RqVMni5/hSJSIiBRDoxFvbPe3v/0Np06dwo0bN/DGG2/gxRdfhOH/X7J44oknMGDAABw/\nfhz/+Z//CTc3N7z55pttfieLKBERtQszZsywuF+j0eC1116z6TtZRImISDGcIN81UXuwiBIRkWLI\nObHIHiyiRESkGE4iXhMVA4soEREphtpGouoq+URERArCIkpERGQnns4lIiLF0HB2LhERkX04sYiI\niMhOaptYxCJKRESK4aSyIqqucTMREZGCsIgSERHZiadziYhIMTQqG9uxiBIRkWJwYhEREZGd1Dax\nSPQiOmnSpBZ/sxAEARqNBtu3bxc7AhERqQQXW7jLjh07xG6CiIhIFpKfzq2qqkJjY6PptZ+fn9QR\niIhIobhiUStycnKwY8cOXL9+HT4+PigvL0f37t2xZs0aqSIQERHdU5KV/LS0NCxbtgxdu3bF+vXr\nkZSUhJ49e0rVPBERqYBGo7H7Rw6SFVFnZ2d4e3tDEAQYjUZERESgqKhIquaJiEgFnDQau3/kINnp\n3A4dOqCurg59+vTB+++/j44dO8Ld3V2q5omISAU4O/cuJSUl0Ov1SEhIgJubG+Lj43H48GGUl5dj\nypQpYjdPREQkGtFP527btg2enp7w8PCAk5MTnJ2dERsbi0GDBuGzzz4Tu3kiIlIRJ42T3T9yEH0k\nWlVVheDg4Gbbg4ODUVZWJnbzRESkImpb9k/00n3z5s1W9zU0NIjdPBERkWhEL6IhISE4cOBAs+0Z\nGRkICQkRu3kiIlIRzs69y+TJk5GcnIzMzExT0SwsLITBYEBCQoLYzRMRkYpwdu5dfH19sXTpUuTl\n5eHy5csAgKioKERERIjdNBERkagku080IiKChZOIiCxS28QiPk+UiIgUg88TJSIispParomq65kz\nRERECsKRKBERKYbanieqrrREREQKwpEoEREpBmfnEhER2Ymzc4mIiOykttm5qiii3/38idwRHJ7+\n28NyR7BZYq+R8B0zQu4YDu2poX+WO4LtivhvhpqpbSTKiUVERER2YhElIiKykypO5xIRUfvA2blE\nRER2Uts1URZRIiJSDM7OJSIispPaRqKcWERERGQnFlEiIiI78XQuEREpBmfnEhER2Ult10RZRImI\nSDE4O5eIiMhOHIkSEREpUG5uLrZu3Qqj0YjRo0cjLi7ObH95eTnWr1+Pmzdvwmg04qWXXkJUVJTF\n72QRJSIixRBrYpHRaERqaioWLlwInU6HefPmITo6GoGBgab37N69G0OHDsUTTzyBK1euYPny5W0W\nUd7iQkREDu/cuXPo0qULAgIC4OLigmHDhuHYsWNm79FoNKitrQUA1NbWolOnTm1+L0eiRESkGGJd\nE62srIROpzO91ul0KCgoMHvP+PHjsXTpUnz33Xeor69HUlJSm9/LIkpERIoh532iWVlZiI2NxXPP\nPYezZ89i3bp1WL16NZycWj9py9O5RESkGJo/8D9LtFotKioqTK8rKiqg1WrN3nPw4EEMHToUABAe\nHo7GxkbcuHHD4veyiBIRkcMLDQ1FcXExSktLYTAYkJ2djejoaLP3+Pn5IS8vDwBw5coVNDY2wsfH\nx+L3SnY6V6/X45NPPsH169cxf/58XLlyBWfPnsWoUaOkikBERArnJNLZXGdnZ0yZMgXLli2D0WjE\nyJEjERQUhLS0NISGhiI6OhqTJk3Cxo0b8c033wAA3nzzzTZPL0tWRD/44APExsYiPT0dANC1a1es\nXbuWRZSIiEzEvCYaFRXV7JaVCRMmmP4cGBiIJUuW2PSdkp3OvXHjBoYNG2Y6QM7OzhYv1hIRESmd\nZCNRd3d33Lhxw1REz549C09PT6maJyIiFeCyf62YNGkS3nvvPZSUlCApKQnV1dWYNWuWVM0TEZEK\n8FForQgJCcGiRYtw9epVCIKAbt26wcWFt6kSEZF6SVrFzp07h7KyMjQ1NeH8+fMAgEcffVTKCERE\npGBOfBRay9atW4dr166hR48eZhOKWESJiOgOns5tRVFREdasWaO6A0RERNJR28Qiye4xCQoKgl6v\nl6o5IiIi0Yk+El2xYgU0Gg3q6uowa9YshIWFmU0oSkxMFDsCERGphMoGouIX0ejoaFRVVaFPnz5m\n20+fPm3Vs9qIiIiUSvQimpOTg5deegnBwcFm2728vPDxxx9z2T8iIjJR2zVR0YtoVVVVswIKAMHB\nwSgrKxO7eSIiUpG2HmmmNKIX0Zs3b7a6r6GhQezmiYhIRdR2B4fos3NDQkJw4MCBZtszMjIQEhIi\ndvNERKQiThqN3T9yEH0kOnnyZCQnJyMzM9NUNAsLC2EwGJCQkCB280RERKIRvYj6+vpi6dKlyMvL\nw+XLlwHcfqZbRESE2E0TEZHKqOxsrnQrFkVERLBwEhGRQ+FjVIiISDF4iwsREZGdeIsLERGRnTgS\nJSIispPKaiiLKN22/7sCuSPYZcKYEXJHcGih2vvljkCkaJI9Co2IiMjRcCRKRESKobZl/1hEiYhI\nMTixiIiIyE4qq6EsokREpBxqG4lyYhEREZGdWESJiIjsxNO5RESkGFz2j4iIyE68xYWIiMhOTuqq\noSyiRESkHGobiXJiERERkZ04EiUiIsXgSJSIiKid4EiUiIgUgxOLiIiI7KS207ksokREpBgqq6G8\nJkpERGQvyUaipaWl2LdvH8rKytDU1GTanpiYKFUEIiJSOLU9xUWyIrpq1SqMHDkSAwcOhJMTB8BE\nRNQc185thaurK8aMGSNVc0RERKKTrIiOGTMGu3btQv/+/eHi8r/NhoSESBWBiIgUTmVnc6Uropcu\nXcJPP/2EvLw8s9O5b7/9tlQRiIhI4XhNtBU///wzUlJSzEahREREaibZDJ+goCDcvHlTquaIiEiF\nNBqN3T9ykGxYWFtbixkzZiAsLMxsNMpbXIiI6A6Vnc2Vroi++OKLUjVFREQqpbZl/2w6nWswGHD6\n9GlkZ2cDAOrq6lBXV2fVZ/v27Ytu3brh1q1buHXrFrp3746+ffvanpiIiEghrB6JXrp0CStXroSr\nqysqKiowbNgwnDp1Cj/++CNmzpzZ5uezs7Oxc+dOU+H88MMPMXHiRAwZMsT+9ERE5FAc9ikumzdv\nxoQJE/DII4/glVdeAXB7dLlx40arPp+eno7ly5ejY8eOAIDq6mosWbKERZSIiCSRm5uLrVu3wmg0\nYvTo0YiLi2v2nuzsbOzatQsajQb3338/pk+fbvE7rS6iV65cwYgRI8y2eXh4oKGhwarPG41GUwEF\nAC8vLxiNRmubJyKidkC
|
||
|
"text/plain": [
|
||
|
"<matplotlib.figure.Figure at 0x7f8c3d16e860>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"<function __main__.e_term>"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 21,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAdEAAAF+CAYAAADdiSCgAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtcVOW+P/DPcA8BcQbEC5AB4iVSRPKGFmpXu2yOaf52\nrxSzjmX77OMlEW+cNDU1UfdOzOOFvOSpyAztZu5EK4E0+Sm52YoieE2QmwMichlm/f7w55xGYJiZ\nXLfh894vXi9nrZl5Pq795JdnrWc9SyMIggAiIiKymZPcAYiIiNSKRZSIiMhOLKJERER2YhElIiKy\nE4soERGRnVhEiYiI7OQidwAiIiIpfPDBBzh+/Dg6duyI1atXN9svCAK2bt2KEydOwN3dHW+++SZC\nQkIsfidHokRE1C7ExsZi/vz5re4/ceIESkpK8P7772Pq1KnYsmVLm9/JIkpERO1C37594eXl1er+\nnJwcPPLII9BoNAgPD8fNmzdx/fp1i9/JIkpERASgsrISfn5+ptc6nQ6VlZUWP6OKa6L97n9U7gg2\nGdC1j9wRbPbnEf3kjmCzTw6flDuCTQK8feSOYLN6g0HuCDbrodPKHcEmxVXVckew2Xvfvyfad/+R\nf+9PXvzxHiaxjiqKKBERtQ8ajUa2trVaLcrLy02vKyoqoNVa/qWMp3OJiIgAREdH46effoIgCDh7\n9iw8PT3RqVMni5/hSJSIiBRDoxFvbPe3v/0Np06dwo0bN/DGG2/gxRdfhOH/X7J44oknMGDAABw/\nfhz/+Z//CTc3N7z55pttfieLKBERtQszZsywuF+j0eC1116z6TtZRImISDGcIN81UXuwiBIRkWLI\nObHIHiyiRESkGE4iXhMVA4soEREphtpGouoq+URERArCIkpERGQnns4lIiLF0HB2LhERkX04sYiI\niMhOaptYxCJKRESK4aSyIqqucTMREZGCsIgSERHZiadziYhIMTQqG9uxiBIRkWJwYhEREZGd1Dax\nSPQiOmnSpBZ/sxAEARqNBtu3bxc7AhERqQQXW7jLjh07xG6CiIhIFpKfzq2qqkJjY6PptZ+fn9QR\niIhIobhiUStycnKwY8cOXL9+HT4+PigvL0f37t2xZs0aqSIQERHdU5KV/LS0NCxbtgxdu3bF+vXr\nkZSUhJ49e0rVPBERqYBGo7H7Rw6SFVFnZ2d4e3tDEAQYjUZERESgqKhIquaJiEgFnDQau3/kINnp\n3A4dOqCurg59+vTB+++/j44dO8Ld3V2q5omISAU4O/cuJSUl0Ov1SEhIgJubG+Lj43H48GGUl5dj\nypQpYjdPREQkGtFP527btg2enp7w8PCAk5MTnJ2dERsbi0GDBuGzzz4Tu3kiIlIRJ42T3T9yEH0k\nWlVVheDg4Gbbg4ODUVZWJnbzRESkImpb9k/00n3z5s1W9zU0NIjdPBERkWhEL6IhISE4cOBAs+0Z\nGRkICQkRu3kiIlIRzs69y+TJk5GcnIzMzExT0SwsLITBYEBCQoLYzRMRkYpwdu5dfH19sXTpUuTl\n5eHy5csAgKioKERERIjdNBERkagku080IiKChZOIiCxS28QiPk+UiIgUg88TJSIispParomq65kz\nRERECsKRKBERKYbanieqrrREREQKwpEoEREpBmfnEhER2Ymzc4mIiOykttm5qiii3/38idwRHJ7+\n28NyR7BZYq+R8B0zQu4YDu2poX+WO4LtivhvhpqpbSTKiUVERER2YhElIiKykypO5xIRUfvA2blE\nRER2Uts1URZRIiJSDM7OJSIispPaRqKcWERERGQnFlEiIiI78XQuEREpBmfnEhER2Ult10RZRImI\nSDE4O5eIiMhOHIkSEREpUG5uLrZu3Qqj0YjRo0cjLi7ObH95eTnWr1+Pmzdvwmg04qWXXkJUVJTF\n72QRJSIixRBrYpHRaERqaioWLlwInU6HefPmITo6GoGBgab37N69G0OHDsUTTzyBK1euYPny5W0W\nUd7iQkREDu/cuXPo0qULAgIC4OLigmHDhuHYsWNm79FoNKitrQUA1NbWolOnTm1+L0eiRESkGGJd\nE62srIROpzO91ul0KCgoMHvP+PHjsXTpUnz33Xeor69HUlJSm9/LIkpERIoh532iWVlZiI2NxXPP\nPYezZ89i3bp1WL16NZycWj9py9O5RESkGJo/8D9LtFotKioqTK8rKiqg1WrN3nPw4EEMHToUABAe\nHo7GxkbcuHHD4veyiBIRkcMLDQ1FcXExSktLYTAYkJ2djejoaLP3+Pn5IS8vDwBw5coVNDY2wsfH\nx+L3SnY6V6/X45NPPsH169cxf/58XLlyBWfPnsWoUaOkikBERArnJNLZXGdnZ0yZMgXLli2D0WjE\nyJEjERQUhLS0NISGhiI6OhqTJk3Cxo0b8c033wAA3nzzzTZPL0tWRD/44APExsYiPT0dANC1a1es\nXbuWRZSIiEzEvCYaFRXV7JaVCRMmmP4cGBiIJUuW2PSdkp3OvXHjBoYNG2Y6QM7OzhYv1hIRESmd\nZCNRd3d33Lhxw1REz549C09PT6maJyIiFeCyf62YNGkS3nvvPZSUlCApKQnV1dWYNWuWVM0TEZEK\n8FForQgJCcGiRYtw9epVCIKAbt26wcWFt6kSEZF6SVrFzp07h7KyMjQ1NeH8+fMAgEcffVTKCERE\npGBOfBRay9atW4dr166hR48eZhOKWESJiOgOns5tRVFREdasWaO6A0RERNJR28Qiye4xCQoKgl6v\nl6o5IiIi0Yk+El2xYgU0Gg3q6uowa9YshIWFmU0oSkxMFDsCERGphMoGouIX0ejoaFRVVaFPnz5m\n20+fPm3Vs9qIiIiUSvQimpOTg5deegnBwcFm2728vPDxxx9z2T8iIjJR2zVR0YtoVVVVswIKAMHB\nwSgrKxO7eSIiUpG2HmmmNKIX0Zs3b7a6r6GhQezmiYhIRdR2B4fos3NDQkJw4MCBZtszMjIQEhIi\ndvNERKQiThqN3T9yEH0kOnnyZCQnJyMzM9NUNAsLC2EwGJCQkCB280RERKIRvYj6+vpi6dKlyMvL\nw+XLlwHcfqZbRESE2E0TEZHKqOxsrnQrFkVERLBwEhGRQ+FjVIiISDF4iwsREZGdeIsLERGRnTgS\nJSIispPKaiiLKN22/7sCuSPYZcKYEXJHcGih2vvljkCkaJI9Co2IiMjRcCRKRESKobZl/1hEiYhI\nMTixiIiIyE4qq6EsokREpBxqG4lyYhEREZGdWESJiIjsxNO5RESkGFz2j4iIyE68xYWIiMhOTuqq\noSyiRESkHGobiXJiERERkZ04EiUiIsXgSJSIiKid4EiUiIgUgxOLiIiI7KS207ksokREpBgqq6G8\nJkpERGQvyUaipaWl2LdvH8rKytDU1GTanpiYKFUEIiJSOLU9xUWyIrpq1SqMHDkSAwcOhJMTB8BE\nRNQc185thaurK8aMGSNVc0RERKKTrIiOGTMGu3btQv/+/eHi8r/NhoSESBWBiIgUTmVnc6Uropcu\nXcJPP/2EvLw8s9O5b7/9tlQRiIhI4XhNtBU///wzUlJSzEahREREaibZDJ+goCDcvHlTquaIiEiF\nNBqN3T9ykGxYWFtbixkzZiAsLMxsNMpbXIiI6A6Vnc2Vroi++OKLUjVFREQqpbZl/2w6nWswGHD6\n9GlkZ2cDAOrq6lBXV2fVZ/v27Ytu3brh1q1buHXrFrp3746+ffvanpiIiEghrB6JXrp0CStXroSr\nqysqKiowbNgwnDp1Cj/++CNmzpzZ5uezs7Oxc+dOU+H88MMPMXHiRAwZMsT+9ERE5FAc9ikumzdv\nxoQJE/DII4/glVdeAXB7dLlx40arPp+eno7ly5ejY8eOAIDq6mosWbKERZSIiCSRm5uLrVu3wmg0\nYvTo0YiLi2v2nuzsbOzatQsajQb3338/pk+fbvE7rS6iV65cwYgRI8y2eXh4oKGhwarPG41GUwEF\nAC8vLxiNRmubJyKidkC
|
||
|
"text/plain": [
|
||
|
"<matplotlib.figure.Figure at 0x7f8c3d16e860>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"def e_term(e):\n",
|
||
|
" print(e.name)\n",
|
||
|
" display(e.eval_df[[\"Nom\", \"Mark_barem\"]])\n",
|
||
|
" display(e.heatmap_on_domain.figure)\n",
|
||
|
"#interact(e_term, e = widgets.Dropdown(options = {e.name:e for e in es}))\n",
|
||
|
"interact(e_term, e = widgets.Select(options = {e.name:e for e in es}))\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {
|
||
|
"collapsed": true
|
||
|
},
|
||
|
"source": [
|
||
|
"# Trimestre 3"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 22,
|
||
|
"metadata": {
|
||
|
"collapsed": true
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.virtualenvs/enseignement/lib/python3.6/site-packages/pandas/core/generic.py:3295: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" self._update_inplace(new_data)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:484: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Mark\"] = compute_marks(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:485: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Level\"] = compute_level(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:486: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Latex_rep\"] = compute_latex_rep(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:487: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Normalized\"] = compute_normalized(df)\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"array(['DM3', 'Bbmars', 'ConnT3'], dtype=object)"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 22,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"flat_T3 = flat[flat[\"Trimestre\"] == 3]\n",
|
||
|
"quest_T3, exo_T3, eval_T3 = digest_flat_df(flat_T3)\n",
|
||
|
"flat_T3[\"Nom\"].unique()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {
|
||
|
"collapsed": true
|
||
|
},
|
||
|
"source": [
|
||
|
"## DM mars"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 23,
|
||
|
"metadata": {
|
||
|
"collapsed": true
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.virtualenvs/enseignement/lib/python3.6/site-packages/pandas/core/generic.py:3295: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" self._update_inplace(new_data)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:484: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Mark\"] = compute_marks(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:485: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Level\"] = compute_level(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:486: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Latex_rep\"] = compute_latex_rep(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:487: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Normalized\"] = compute_normalized(df)\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"flat_DMmars = flat_T3[flat_T3[\"Nom\"]==\"DM3\"]\n",
|
||
|
"quest_DMmars, exo_DMmars, eval_DMmars = digest_flat_df(flat_DMmars)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 24,
|
||
|
"metadata": {
|
||
|
"collapsed": true
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/html": [
|
||
|
"<div>\n",
|
||
|
"<table border=\"1\" class=\"dataframe\">\n",
|
||
|
" <thead>\n",
|
||
|
" <tr style=\"text-align: right;\">\n",
|
||
|
" <th></th>\n",
|
||
|
" <th>Eleve</th>\n",
|
||
|
" <th>Mark_barem</th>\n",
|
||
|
" </tr>\n",
|
||
|
" </thead>\n",
|
||
|
" <tbody>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>0</th>\n",
|
||
|
" <td>ABDALLAH Elza</td>\n",
|
||
|
" <td>7,5 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>1</th>\n",
|
||
|
" <td>ABDALLAH Nourayina</td>\n",
|
||
|
" <td>11 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>2</th>\n",
|
||
|
" <td>ABDALLAH Roukia</td>\n",
|
||
|
" <td>3,5 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>3</th>\n",
|
||
|
" <td>ABOUDOU Faise</td>\n",
|
||
|
" <td>1 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>4</th>\n",
|
||
|
" <td>AHAMADI Laila</td>\n",
|
||
|
" <td>9 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>5</th>\n",
|
||
|
" <td>AHAMADI Satti</td>\n",
|
||
|
" <td>9 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>6</th>\n",
|
||
|
" <td>AHMED Nachmie</td>\n",
|
||
|
" <td>4,5 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>7</th>\n",
|
||
|
" <td>ALI ABDALLAH Raphael</td>\n",
|
||
|
" <td>7 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>8</th>\n",
|
||
|
" <td>ATTOUMANE Nasrati</td>\n",
|
||
|
" <td>5,5 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>9</th>\n",
|
||
|
" <td>ATTOUMANE Nedjima</td>\n",
|
||
|
" <td>6,5 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>10</th>\n",
|
||
|
" <td>DARKAOUI Issouf</td>\n",
|
||
|
" <td>2,5 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>11</th>\n",
|
||
|
" <td>DHOIMIR Hidayat</td>\n",
|
||
|
" <td>3 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>12</th>\n",
|
||
|
" <td>DJAMAL Hounaissati</td>\n",
|
||
|
" <td>1 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>13</th>\n",
|
||
|
" <td>DJANFAR Houmadi</td>\n",
|
||
|
" <td>0 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>14</th>\n",
|
||
|
" <td>FAIZ Aoufi Youssouf</td>\n",
|
||
|
" <td>6 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>15</th>\n",
|
||
|
" <td>HAMZA El-Hadji</td>\n",
|
||
|
" <td>9 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>16</th>\n",
|
||
|
" <td>HOUFRANE Soirta</td>\n",
|
||
|
" <td>9 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>17</th>\n",
|
||
|
" <td>IBRAHIM Rouiyati</td>\n",
|
||
|
" <td>8 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>18</th>\n",
|
||
|
" <td>ISSOUF Toifia</td>\n",
|
||
|
" <td>6 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>19</th>\n",
|
||
|
" <td>MOADJO Hachimia</td>\n",
|
||
|
" <td>2 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>20</th>\n",
|
||
|
" <td>MOHAMED Abderemane</td>\n",
|
||
|
" <td>9 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>21</th>\n",
|
||
|
" <td>MOHAMED Nadhir-Eddine</td>\n",
|
||
|
" <td>10 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>22</th>\n",
|
||
|
" <td>SAID Fatima</td>\n",
|
||
|
" <td>7 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>23</th>\n",
|
||
|
" <td>YOUSSOUF Ouldine</td>\n",
|
||
|
" <td>7 / 11</td>\n",
|
||
|
" </tr>\n",
|
||
|
" </tbody>\n",
|
||
|
"</table>\n",
|
||
|
"</div>"
|
||
|
],
|
||
|
"text/plain": [
|
||
|
" Eleve Mark_barem\n",
|
||
|
"0 ABDALLAH Elza 7,5 / 11\n",
|
||
|
"1 ABDALLAH Nourayina 11 / 11\n",
|
||
|
"2 ABDALLAH Roukia 3,5 / 11\n",
|
||
|
"3 ABOUDOU Faise 1 / 11\n",
|
||
|
"4 AHAMADI Laila 9 / 11\n",
|
||
|
"5 AHAMADI Satti 9 / 11\n",
|
||
|
"6 AHMED Nachmie 4,5 / 11\n",
|
||
|
"7 ALI ABDALLAH Raphael 7 / 11\n",
|
||
|
"8 ATTOUMANE Nasrati 5,5 / 11\n",
|
||
|
"9 ATTOUMANE Nedjima 6,5 / 11\n",
|
||
|
"10 DARKAOUI Issouf 2,5 / 11\n",
|
||
|
"11 DHOIMIR Hidayat 3 / 11\n",
|
||
|
"12 DJAMAL Hounaissati 1 / 11\n",
|
||
|
"13 DJANFAR Houmadi 0 / 11\n",
|
||
|
"14 FAIZ Aoufi Youssouf 6 / 11\n",
|
||
|
"15 HAMZA El-Hadji 9 / 11\n",
|
||
|
"16 HOUFRANE Soirta 9 / 11\n",
|
||
|
"17 IBRAHIM Rouiyati 8 / 11\n",
|
||
|
"18 ISSOUF Toifia 6 / 11\n",
|
||
|
"19 MOADJO Hachimia 2 / 11\n",
|
||
|
"20 MOHAMED Abderemane 9 / 11\n",
|
||
|
"21 MOHAMED Nadhir-Eddine 10 / 11\n",
|
||
|
"22 SAID Fatima 7 / 11\n",
|
||
|
"23 YOUSSOUF Ouldine 7 / 11"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 24,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"eval_DMmars[[\"Eleve\", \"Mark_barem\"]]"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"Travaux non rendus"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 25,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"print(\"\\n\".join(list(eval_DMmars[pd.isnull(eval_DMmars[\"Mark\"])][\"Eleve\"])))"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"Les élèves à revoir pour la géométrie"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 26,
|
||
|
"metadata": {
|
||
|
"collapsed": true
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"exo_geo = exo_DMmars[exo_DMmars[\"Exercice\"]==2]"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 27,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"1 ABDALLAH Elza\n",
|
||
|
"5 ABDALLAH Roukia\n",
|
||
|
"8 ABOUDOU Faise\n",
|
||
|
"15 AHMED Nachmie\n",
|
||
|
"19 ATTOUMANE Nasrati\n",
|
||
|
"23 DARKAOUI Issouf\n",
|
||
|
"26 DHOIMIR Hidayat\n",
|
||
|
"29 DJAMAL Hounaissati\n",
|
||
|
"32 DJANFAR Houmadi\n",
|
||
|
"42 ISSOUF Toifia\n",
|
||
|
"44 MOADJO Hachimia\n",
|
||
|
"52 SAID Fatima\n",
|
||
|
"Name: Eleve, dtype: object"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 27,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"exo_geo[exo_geo[\"Normalized\"] <= 0.5][\"Eleve\"]"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 28,
|
||
|
"metadata": {
|
||
|
"collapsed": true
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"<matplotlib.axes._subplots.AxesSubplot at 0x7f8c3b0233c8>"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 28,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.virtualenvs/enseignement/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['sans-serif'] not found. Falling back to DejaVu Sans\n",
|
||
|
" (prop.get_family(), self.defaultFamily[fontext]))\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAdoAAAFKCAYAAAC6gp7sAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAADxRJREFUeJzt3V+IlHXbwPFrciu1cHO3LGbTHjaN0CwpxYoiUyswe4gO\nhERBD17wD4gdVOJBnhRItSjCynYQ1WlHgmV0EhTkibaJZmUKFsYWpqumpsnuzHsQRW9vOmPNNTM7\nfj5H/hl/XvdvZ/e79z3ObaFcLpcDAEhxVaMHAIBWJrQAkEhoASCR0AJAIqEFgERCCwCJhBYAErVl\nLTwwMFCztYrFYk3Xa1X2qTJ7VB37VB37VJ0rYZ+KxeJFf88ZLQAkEloASCS0AJBIaAEgkdACQCKh\nBYBEQgsAiYQWABJVdcOK1atXx+jRo+Oqq66KUaNGxcaNG7PnAoCWUPWdoTZs2BDjxo3LnAUAWo5L\nxwCQqOoz2ldeeSUiIh577LGYP39+2kAA0EoK5XK5XOlBg4OD0dHREadOnYqXX345li9fHlOnTq3H\nfABcwpEnZ9Z0vYnv767pelR5RtvR0REREe3t7TFr1qw4dOhQxdD633vqzz5VZo+qY5+q04r7lHE8\nrbhPf/Wv/vee8+fPx7lz5/748d69e2PSpEm1mw4AWljFM9pTp07F66+/HhERw8PD8dBDD8WMGTPS\nBwOAVlAxtDfffHO89tpr9ZgFAFqOt/cAQCKhBYBEQgsAiYQWABIJLQAkEloASCS0AJBIaAEgkdAC\nQCKhBYBEQgsAiYQWABIJLQAkEloASCS0AJBIaAEgkdACQCKhBYBEQgsAiYQWABIJLQAkEloASCS0\nAJBIaAEgkdACQCKhBYBEQgsAiYQWABIJLQAkEloASCS0AJBIaAEgkdACQCKhBYBEQgsAiYQWABIJ\nLQAkEloASCS0AJBIaAEgkdACQCKhBYBEQgsAiYQWABIJLQAkEloASCS0AJBIaAEgUdWhLZVK8cIL\nL8TGjRsz5wGAllJ1aHfs2BFdXV2ZswBAy6kqtMePH4/+/v6YN29e9jwA0FKqCu3bb78dS5YsiUKh\nkD0PALSUtkoP+Oyzz6K9vT26u7tj//79VS9cLBb/1WDZ67Uq+1SZPaqOfapOo/fpSI3XyzqeRu9T\nI1UM7YEDB2L37t3x+eefx4ULF+LcuXOxZcuWWLNmzSX/3MDAQM2GLBaLNV2vVdmnyuxRdexTdVpx\nnzKOpxX36a8u9Y1ExdAuXrw4Fi9eHBER+/fvj+3bt1eMLADwG++jBYBEFc9o/2zatGkxbdq0rFkA\noOU4owWAREILAImEFgASCS0AJBJaAEgktACQSGgBIJHQAkAioQWAREILAImEFgASCS0AJBJaAEgk\ntACQSGgBIJHQAkAioQWAREILAImEFgASCS0AJBJaAEgktACQSGgBIJHQAkAioQWAREILAImEFgAS\nCS0AJBJaAEgktACQSGgBIJHQAkAioQWAREILAImEFgASCS0AJBJaAEgktACQSGgBIJHQAkAioQWA\nREILAImEFgASCS0AJBJaAEgktACQSGgBIJHQAkCitkoPuHDhQmzYsCGGhoZieHg47r///li0aFE9\nZgOAEa9iaK+++urYsGFDjB49OoaGhuKll16KGTNmxB133FGP+QBgRKt46bhQKMTo0aMjImJ4eDiG\nh4ejUCikDwYAraDiGW1ERKlUihdffDF+/PHHeOKJJ2LKlCnZcwFASyiUy+VytQ8+e/ZsvP7667F8\n+fKYNGlS5lzAFejIkzNrttbE93fXbK1mVss9i7hy9q2eqjqj/d11110X06ZNiz179lQM7cDAwL8a\n7M+KxWJN12tV9qkye1SdVtineszfCvv0VxnH04r79FfFYvGiv1fxNdqff/45zp49GxG//QvkvXv3\nRldXV+2mA4AWVvGM9sSJE9Hb2xulUinK5XI88MADcd9999VjNgAY8SqG9rbbbotXX321HrMAQMtx\nZygASCS0AJBIaAEgkdACQCKhBYBEQgsAiYQWABIJLQAkEloASCS0AJBIaAEgkdACQCKhBYBEQgsA\niYQWABIJLQAkEloASCS0AJBIaAEgkdACQCKhBYBEQgsAiYQWABIJLQAkEloASCS0AJBIaAEgkdAC\nQCKhBYBEQgsAiYQWABIJLQAkEloASCS0AJBIaAEgkdACQCKhBYBEQgsAiYQWABIJLQAkEloASCS0\nAJBIaAEgkdACQCKhBYBEQgsAiYQWABIJLQAkaqv0gGPHjkVvb2+cPHkyCoVCzJ8/PxYsWFCP2QBg\nxKsY2lGjRsXSpUuju7s7zp07F+vWrYu77747br311nrMBwAjWsVLx+PHj4/u7u6IiBgzZkx0dXXF\n4OBg+mAA0Aou6zXao0ePxuHDh2Py5MlZ8wBAS6l46fh358+fj56enli2bFmMHTu24uOLxeK/Gixr\nvSNPzqzJOr+b+P7umq73b9V631vRlb5H1XwOHLmM9Wr5OXA5f28l9fo4N/r5VMs9i8g7nkbvUyNV\nFdqhoaHo6emJhx9+OGbPnl3VwgMDA/9qsD8rFos1Xa+WmmmuZt6nZmGPaq9Z97Mec7Xi8ynjeFpx\nn/7qUt9IVLx0XC6Xo6+vL7q6umLhwoU1HQwAWl3FM9oDBw7EJ598EpMmTYrnn38+IiKeffbZuPfe\ne9OHA4CRrmJo77zzznj33XfrMQsAtBx3hgKAREILAImEFgASCS0AJBJaAEgktACQSGgBIJHQAkAi\noQWAREILAImEFgASCS0AJBJaAEgktACQSGgBIJHQAkAioQWAREILAImEFgASCS0AJBJaAEgktACQ\nSGgBIJHQAkAioQWAREILAImEFgASCS0AJBJaAEgktACQSGgBIJHQAkAioQWAREILAImEFgASCS0A\nJBJaAEgktACQSGgBIJHQAkAioQWAREILAImEFgASCS0AJBJaAEgktACQSGgBIJHQAkCitkoP2Lp1\na/T390d7e3v09PTUYyYAaBkVz2jnzJkT69evr8csANByKoZ26tSpcf3119djFgBoOV6jBYBEFV+j\n/aeKxWLN1jry5MyarVVrzXScR2o0x0gy8f3dl/1nLvYxq/Xz7J/MdjHN/Dkw/D//bfQIf6sec/3T\nz7maPjdqttJvMr6mNePXplp+DCpJC+3AwEDW0k3lSjnOZnW5+18sFuv2MfPc4GKa+bnRzLPVUq2P\n81LfoLh0DACJKp7Rbt68Ob788ss4ffp0rFixIhYtWhRz586tx2wAMOJVDO3atWvrMQcAtCSXjgEg\nkdACQCKhBYBEQgsAiYQWABIJLQAkEloASCS0AJBIaAEgkdACQCKhBYBEQgsAiYQWABIJLQAkEloA\nSCS0AJBIaAEgkdACQCKhBYBEQgsAiYQWABIJLQAkEloASCS0AJBIaAEgkdACQCKhBYBEQgsAiYQW\nABIJLQAkEloASCS0AJBIaAEgkdACQCKhBYBEQgsAiYQWABIJLQAkEloASCS0AJBIaAEgkdACQCKh\nBYBEQgsAiYQWABIJLQAkEloASCS0AJCorZoH7dmzJ956660olUoxb968ePrpp7PnAoCWUPGMtlQq\nxZtvvhnr16+PTZs2xaeffhrff/99PWYDgBGvYmgPHToUt9xyS9x8883R1tYWDz74YOzataseswHA\niFcxtIODg9HZ2fnHzzs7O2NwcDB1KABoFVW9RvtPFIvF2i32/u7ardXMrpTjbLCLPjebef+beTYa\nq5mfG808Wx1VPKPt6OiI48eP//Hz48ePR0dHR+pQANAqKob29ttvjx9++CGOHj0aQ0NDsXPnzpg5\nc2Y9ZgOAEa9QLpfLlR7U398f77zzTpRKpXj00UfjmWeeqcdsADDiVRVaAOCfcWcoAEgktACQKO3t\nPbXg1o+VHTt2LHp7e+PkyZNRKBRi/vz5sWDBgkaP1bRKpVKsW7cuOjo6Yt26dY0epymdPXs2+vr6\n4siRI1EoFGLlypVxxx1
|
||
|
"text/plain": [
|
||
|
"<matplotlib.figure.Figure at 0x7f8c3afabe48>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"eval_DMmars[\"Mark\"].hist(bins=np.linspace(0.,11.,22))"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {
|
||
|
"collapsed": true
|
||
|
},
|
||
|
"source": [
|
||
|
"## BB mars"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 29,
|
||
|
"metadata": {
|
||
|
"collapsed": true
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.virtualenvs/enseignement/lib/python3.6/site-packages/pandas/core/generic.py:3295: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" self._update_inplace(new_data)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:484: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Mark\"] = compute_marks(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:485: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Level\"] = compute_level(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:486: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Latex_rep\"] = compute_latex_rep(df)\n",
|
||
|
"/home/lafrite/scripts/notes_analysis/notes_tools/tools/df_marks_manip.py:487: SettingWithCopyWarning: \n",
|
||
|
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
||
|
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
||
|
"\n",
|
||
|
"See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
|
||
|
" df[\"Normalized\"] = compute_normalized(df)\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"flat_BBmars = flat_T3[flat_T3[\"Nom\"]==\"Bbmars\"]\n",
|
||
|
"quest_BBmars, exo_BBmars, eval_BBmars = digest_flat_df(flat_BBmars)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 32,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"count 23.00\n",
|
||
|
"mean 18.50\n",
|
||
|
"std 5.39\n",
|
||
|
"min 4.50\n",
|
||
|
"25% 15.75\n",
|
||
|
"50% 18.00\n",
|
||
|
"75% 20.75\n",
|
||
|
"max 27.50\n",
|
||
|
"Name: Mark, dtype: float64"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 32,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"eval_BBmars[\"Mark\"].describe()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 31,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/html": [
|
||
|
"<div>\n",
|
||
|
"<table border=\"1\" class=\"dataframe\">\n",
|
||
|
" <thead>\n",
|
||
|
" <tr style=\"text-align: right;\">\n",
|
||
|
" <th></th>\n",
|
||
|
" <th>Eleve</th>\n",
|
||
|
" <th>Mark_barem</th>\n",
|
||
|
" </tr>\n",
|
||
|
" </thead>\n",
|
||
|
" <tbody>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>0</th>\n",
|
||
|
" <td>ABDALLAH Elza</td>\n",
|
||
|
" <td>18 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>1</th>\n",
|
||
|
" <td>ABDALLAH Nourayina</td>\n",
|
||
|
" <td>17 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>2</th>\n",
|
||
|
" <td>ABDALLAH Roukia</td>\n",
|
||
|
" <td>15 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>3</th>\n",
|
||
|
" <td>ABOUDOU Faise</td>\n",
|
||
|
" <td>26,5 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>4</th>\n",
|
||
|
" <td>AHAMADI Laila</td>\n",
|
||
|
" <td>27,5 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>5</th>\n",
|
||
|
" <td>AHAMADI Satti</td>\n",
|
||
|
" <td>13 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>6</th>\n",
|
||
|
" <td>AHMED Nachmie</td>\n",
|
||
|
" <td>19 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>7</th>\n",
|
||
|
" <td>ALI ABDALLAH Raphael</td>\n",
|
||
|
" <td>20 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>8</th>\n",
|
||
|
" <td>ATTOUMANE Nasrati</td>\n",
|
||
|
" <td>21 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>9</th>\n",
|
||
|
" <td>ATTOUMANE Nedjima</td>\n",
|
||
|
" <td>20 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>10</th>\n",
|
||
|
" <td>DARKAOUI Issouf</td>\n",
|
||
|
" <td>15,5 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>11</th>\n",
|
||
|
" <td>DHOIMIR Hidayat</td>\n",
|
||
|
" <td>16 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>12</th>\n",
|
||
|
" <td>DJAMAL Hounaissati</td>\n",
|
||
|
" <td>15 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>13</th>\n",
|
||
|
" <td>DJANFAR Houmadi</td>\n",
|
||
|
" <td>4,5 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>14</th>\n",
|
||
|
" <td>FAIZ Aoufi Youssouf</td>\n",
|
||
|
" <td>10 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>15</th>\n",
|
||
|
" <td>HAMZA El-Hadji</td>\n",
|
||
|
" <td>20 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>16</th>\n",
|
||
|
" <td>HOUFRANE Soirta</td>\n",
|
||
|
" <td>16,5 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>17</th>\n",
|
||
|
" <td>IBRAHIM Rouiyati</td>\n",
|
||
|
" <td>26 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>18</th>\n",
|
||
|
" <td>ISSOUF Toifia</td>\n",
|
||
|
" <td>18 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>19</th>\n",
|
||
|
" <td>MOADJO Hachimia</td>\n",
|
||
|
" <td>17,5 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>20</th>\n",
|
||
|
" <td>MOHAMED Abderemane</td>\n",
|
||
|
" <td>25,5 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>21</th>\n",
|
||
|
" <td>MOHAMED Nadhir-Eddine</td>\n",
|
||
|
" <td>20,5 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>22</th>\n",
|
||
|
" <td>YOUSSOUF Ouldine</td>\n",
|
||
|
" <td>23,5 / 39</td>\n",
|
||
|
" </tr>\n",
|
||
|
" </tbody>\n",
|
||
|
"</table>\n",
|
||
|
"</div>"
|
||
|
],
|
||
|
"text/plain": [
|
||
|
" Eleve Mark_barem\n",
|
||
|
"0 ABDALLAH Elza 18 / 39\n",
|
||
|
"1 ABDALLAH Nourayina 17 / 39\n",
|
||
|
"2 ABDALLAH Roukia 15 / 39\n",
|
||
|
"3 ABOUDOU Faise 26,5 / 39\n",
|
||
|
"4 AHAMADI Laila 27,5 / 39\n",
|
||
|
"5 AHAMADI Satti 13 / 39\n",
|
||
|
"6 AHMED Nachmie 19 / 39\n",
|
||
|
"7 ALI ABDALLAH Raphael 20 / 39\n",
|
||
|
"8 ATTOUMANE Nasrati 21 / 39\n",
|
||
|
"9 ATTOUMANE Nedjima 20 / 39\n",
|
||
|
"10 DARKAOUI Issouf 15,5 / 39\n",
|
||
|
"11 DHOIMIR Hidayat 16 / 39\n",
|
||
|
"12 DJAMAL Hounaissati 15 / 39\n",
|
||
|
"13 DJANFAR Houmadi 4,5 / 39\n",
|
||
|
"14 FAIZ Aoufi Youssouf 10 / 39\n",
|
||
|
"15 HAMZA El-Hadji 20 / 39\n",
|
||
|
"16 HOUFRANE Soirta 16,5 / 39\n",
|
||
|
"17 IBRAHIM Rouiyati 26 / 39\n",
|
||
|
"18 ISSOUF Toifia 18 / 39\n",
|
||
|
"19 MOADJO Hachimia 17,5 / 39\n",
|
||
|
"20 MOHAMED Abderemane 25,5 / 39\n",
|
||
|
"21 MOHAMED Nadhir-Eddine 20,5 / 39\n",
|
||
|
"22 YOUSSOUF Ouldine 23,5 / 39"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 31,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"eval_BBmars[[\"Eleve\", \"Mark_barem\"]]"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 34,
|
||
|
"metadata": {
|
||
|
"collapsed": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/plain": [
|
||
|
"<matplotlib.axes._subplots.AxesSubplot at 0x7f8c3ade3710>"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 34,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.virtualenvs/enseignement/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['sans-serif'] not found. Falling back to DejaVu Sans\n",
|
||
|
" (prop.get_family(), self.defaultFamily[fontext]))\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "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\n6Ouuri4FAoFbjAoAQGp
|
||
|
"text/plain": [
|
||
|
"<matplotlib.figure.Figure at 0x7f8c3ad7feb8>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"eval_BBmars[\"Normalized\"].hist(bins = 20)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {
|
||
|
"collapsed": true
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
}
|
||
|
],
|
||
|
"metadata": {
|
||
|
"extensions": {
|
||
|
"jupyter_dashboards": {
|
||
|
"activeView": "report_default",
|
||
|
"version": 1,
|
||
|
"views": {
|
||
|
"grid_default": {
|
||
|
"cellMargin": 10,
|
||
|
"defaultCellHeight": 20,
|
||
|
"maxColumns": 12,
|
||
|
"name": "grid",
|
||
|
"type": "grid"
|
||
|
},
|
||
|
"report_default": {
|
||
|
"name": "report",
|
||
|
"type": "report"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"kernelspec": {
|
||
|
"display_name": "Python 3",
|
||
|
"language": "python",
|
||
|
"name": "python3"
|
||
|
},
|
||
|
"language_info": {
|
||
|
"codemirror_mode": {
|
||
|
"name": "ipython",
|
||
|
"version": 3
|
||
|
},
|
||
|
"file_extension": ".py",
|
||
|
"mimetype": "text/x-python",
|
||
|
"name": "python",
|
||
|
"nbconvert_exporter": "python",
|
||
|
"pygments_lexer": "ipython3",
|
||
|
"version": "3.6.0"
|
||
|
},
|
||
|
"widgets": {
|
||
|
"state": {
|
||
|
"d97f7e8e574e4afbb01a828a05feb445": {
|
||
|
"views": [
|
||
|
{
|
||
|
"cell_index": 27
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"version": "1.2.0"
|
||
|
}
|
||
|
},
|
||
|
"nbformat": 4,
|
||
|
"nbformat_minor": 1
|
||
|
}
|