recopytex/templates/tpl_student.ipynb

1112 lines
35 KiB
Plaintext
Raw Normal View History

2019-08-04 14:25:44 +00:00
{
"cells": [
{
"cell_type": "code",
2019-08-20 19:15:39 +00:00
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"from IPython.display import Markdown as md\n",
2019-08-20 19:15:39 +00:00
"from IPython.display import display\n",
"import pandas as pd\n",
2019-08-20 19:15:39 +00:00
"from pathlib import Path\n",
"from datetime import datetime\n",
"from recopytex import flat_df_for, pp_q_scores\n",
"#import prettytable as pt\n",
"%matplotlib inline"
]
},
2019-08-04 14:25:44 +00:00
{
"cell_type": "code",
2019-08-20 19:15:39 +00:00
"execution_count": 2,
2019-08-04 14:25:44 +00:00
"metadata": {
"tags": [
"parameters"
]
},
"outputs": [],
"source": [
2019-08-20 19:15:39 +00:00
"tribe = 308\n",
2019-08-04 14:54:12 +00:00
"student = \"ABDOU Asmahane\"\n",
2019-08-20 19:15:39 +00:00
"source = Path(f\"../sheets/{tribe}/\")"
2019-08-04 14:25:44 +00:00
]
},
{
"cell_type": "code",
2019-08-20 19:15:39 +00:00
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"dfs = []\n",
"for file in source.glob(\"*.csv\"):\n",
" df = pd.read_csv(file)\n",
" df = flat_df_for(df, student)\n",
" dfs.append(df)\n",
"scores = pd.concat(dfs) \n",
"scores = pp_q_scores(scores)"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Trimestre</th>\n",
" <th>Nom</th>\n",
" <th>Date</th>\n",
" <th>Exercice</th>\n",
" <th>Question</th>\n",
" <th>Competence</th>\n",
" <th>Domaine</th>\n",
" <th>Commentaire</th>\n",
" <th>Bareme</th>\n",
" <th>Est_nivele</th>\n",
" <th>Score</th>\n",
" <th>Note</th>\n",
" <th>Niveau</th>\n",
" <th>Normalise</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1</td>\n",
" <td>DS2</td>\n",
" <td>05/11/16</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>Mod</td>\n",
" <td>Frac</td>\n",
" <td>Figure -&gt; fraction</td>\n",
" <td>2.0</td>\n",
" <td>1</td>\n",
" <td>-1</td>\n",
" <td>0.00</td>\n",
" <td>NaN</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1</td>\n",
" <td>DS2</td>\n",
" <td>05/11/16</td>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>Cal</td>\n",
" <td>Frac</td>\n",
" <td>Égalité fractions</td>\n",
" <td>2.0</td>\n",
" <td>1</td>\n",
" <td>-1</td>\n",
" <td>0.00</td>\n",
" <td>NaN</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>1</td>\n",
" <td>DS2</td>\n",
" <td>05/11/16</td>\n",
" <td>2</td>\n",
" <td></td>\n",
" <td>Com</td>\n",
" <td>Geo</td>\n",
" <td>Communication</td>\n",
" <td>2.0</td>\n",
" <td>1</td>\n",
" <td>-1</td>\n",
" <td>0.00</td>\n",
" <td>NaN</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>1</td>\n",
" <td>DS2</td>\n",
" <td>05/11/16</td>\n",
" <td>2</td>\n",
" <td></td>\n",
" <td>Con</td>\n",
" <td>Geo</td>\n",
" <td>Tableau</td>\n",
" <td>2.0</td>\n",
" <td>1</td>\n",
" <td>-1</td>\n",
" <td>0.00</td>\n",
" <td>NaN</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>1</td>\n",
" <td>DS2</td>\n",
" <td>05/11/16</td>\n",
" <td>2</td>\n",
" <td></td>\n",
" <td>Cal</td>\n",
" <td>Geo</td>\n",
" <td>Calculs</td>\n",
" <td>2.0</td>\n",
" <td>1</td>\n",
" <td>-1</td>\n",
" <td>0.00</td>\n",
" <td>NaN</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>1</td>\n",
" <td>DS2</td>\n",
" <td>05/11/16</td>\n",
" <td>3</td>\n",
" <td>1 à 3</td>\n",
" <td>Che</td>\n",
" <td>Ope</td>\n",
" <td>Mettre en valeur les informations</td>\n",
" <td>1.5</td>\n",
" <td>1</td>\n",
" <td>-1</td>\n",
" <td>0.00</td>\n",
" <td>NaN</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>1</td>\n",
" <td>DS2</td>\n",
" <td>05/11/16</td>\n",
" <td>3</td>\n",
" <td>1 à 3</td>\n",
" <td>Cal</td>\n",
" <td>Ope</td>\n",
" <td>Choisir et faire les calculs</td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>-1</td>\n",
" <td>0.00</td>\n",
" <td>NaN</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>1</td>\n",
" <td>DS2</td>\n",
" <td>05/11/16</td>\n",
" <td>3</td>\n",
" <td>1 à 3</td>\n",
" <td>Com</td>\n",
" <td>Ope</td>\n",
" <td>Phrases et étapes</td>\n",
" <td>1.5</td>\n",
" <td>1</td>\n",
" <td>-1</td>\n",
" <td>0.00</td>\n",
" <td>NaN</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>1</td>\n",
" <td>DS2</td>\n",
" <td>05/11/16</td>\n",
" <td>4</td>\n",
" <td>1</td>\n",
" <td>Che</td>\n",
" <td>Geo3D</td>\n",
" <td>Remplir le tableau</td>\n",
" <td>2.0</td>\n",
" <td>1</td>\n",
" <td>-1</td>\n",
" <td>0.00</td>\n",
" <td>NaN</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>1</td>\n",
" <td>DS2</td>\n",
" <td>05/11/16</td>\n",
" <td>4</td>\n",
" <td>1</td>\n",
" <td>Cal</td>\n",
" <td>Litt</td>\n",
" <td>Calcul s+f-a</td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>-1</td>\n",
" <td>0.00</td>\n",
" <td>NaN</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1</td>\n",
" <td>DM1</td>\n",
" <td>15/09/16</td>\n",
" <td>1</td>\n",
" <td>1.1</td>\n",
" <td>Cal</td>\n",
" <td>Prio</td>\n",
" <td></td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>0.67</td>\n",
" <td>2.0</td>\n",
" <td>0.67</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1</td>\n",
" <td>DM1</td>\n",
" <td>15/09/16</td>\n",
" <td>1</td>\n",
" <td>1.2</td>\n",
" <td>Cal</td>\n",
" <td>Prio</td>\n",
" <td></td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>3</td>\n",
" <td>1.00</td>\n",
" <td>3.0</td>\n",
" <td>1.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>1</td>\n",
" <td>DM1</td>\n",
" <td>15/09/16</td>\n",
" <td>1</td>\n",
" <td>1.3</td>\n",
" <td>Cal</td>\n",
" <td>Prio</td>\n",
" <td></td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>0.67</td>\n",
" <td>2.0</td>\n",
" <td>0.67</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>1</td>\n",
" <td>DM1</td>\n",
" <td>15/09/16</td>\n",
" <td>1</td>\n",
" <td>1.4</td>\n",
" <td>Cal</td>\n",
" <td>Prio</td>\n",
" <td></td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>0.67</td>\n",
" <td>2.0</td>\n",
" <td>0.67</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>1</td>\n",
" <td>DM1</td>\n",
" <td>15/09/16</td>\n",
" <td>1</td>\n",
" <td>1.5</td>\n",
" <td>Cal</td>\n",
" <td>Prio</td>\n",
" <td></td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>0.67</td>\n",
" <td>2.0</td>\n",
" <td>0.67</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>1</td>\n",
" <td>DM1</td>\n",
" <td>15/09/16</td>\n",
" <td>1</td>\n",
" <td>1.6</td>\n",
" <td>Cal</td>\n",
" <td>Prio</td>\n",
" <td></td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0.00</td>\n",
" <td>0.0</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>1</td>\n",
" <td>DM1</td>\n",
" <td>15/09/16</td>\n",
" <td>2</td>\n",
" <td>2.1</td>\n",
" <td>Com</td>\n",
" <td>Proba</td>\n",
" <td></td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>0.33</td>\n",
" <td>1.0</td>\n",
" <td>0.33</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>1</td>\n",
" <td>DM1</td>\n",
" <td>15/09/16</td>\n",
" <td>2</td>\n",
" <td>2.2 à 2.4</td>\n",
" <td>Com</td>\n",
" <td>Proba</td>\n",
" <td>Notation P(...)</td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0.00</td>\n",
" <td>0.0</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>1</td>\n",
" <td>DM1</td>\n",
" <td>15/09/16</td>\n",
" <td>2</td>\n",
" <td>2.2 à 2.4</td>\n",
" <td>Rep</td>\n",
" <td>Proba</td>\n",
" <td>Fractions</td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0.00</td>\n",
" <td>0.0</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>1</td>\n",
" <td>DM1</td>\n",
" <td>15/09/16</td>\n",
" <td>2</td>\n",
" <td>2.2 à 2.4</td>\n",
" <td>Div</td>\n",
" <td>Proba</td>\n",
" <td>résultat</td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>-1</td>\n",
" <td>0.00</td>\n",
" <td>NaN</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
" <td>1</td>\n",
" <td>DM1</td>\n",
" <td>15/09/16</td>\n",
" <td>2</td>\n",
" <td>2.5</td>\n",
" <td>Rai</td>\n",
" <td>Proba</td>\n",
" <td></td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>-1</td>\n",
" <td>0.00</td>\n",
" <td>NaN</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11</th>\n",
" <td>1</td>\n",
" <td>DM1</td>\n",
" <td>15/09/16</td>\n",
" <td>Malus</td>\n",
" <td>Retard</td>\n",
" <td>Div</td>\n",
" <td>Div</td>\n",
" <td></td>\n",
" <td>0.0</td>\n",
" <td>0</td>\n",
" <td>-1</td>\n",
" <td>0.00</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>12</th>\n",
" <td>1</td>\n",
" <td>DM1</td>\n",
" <td>15/09/16</td>\n",
" <td>Presentation</td>\n",
" <td></td>\n",
" <td>Com</td>\n",
" <td>Div</td>\n",
" <td></td>\n",
" <td>1.0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>1.00</td>\n",
" <td>3.0</td>\n",
" <td>1.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1</td>\n",
" <td>DS1</td>\n",
" <td>24/09/16</td>\n",
" <td>1</td>\n",
" <td>1.a</td>\n",
" <td>Cal</td>\n",
" <td>Prio</td>\n",
" <td></td>\n",
" <td>1.5</td>\n",
" <td>1</td>\n",
" <td>3</td>\n",
" <td>1.50</td>\n",
" <td>3.0</td>\n",
" <td>1.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1</td>\n",
" <td>DS1</td>\n",
" <td>24/09/16</td>\n",
" <td>1</td>\n",
" <td>1.b</td>\n",
" <td>Cal</td>\n",
" <td>Prio</td>\n",
" <td></td>\n",
" <td>1.5</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0.00</td>\n",
" <td>0.0</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>1</td>\n",
" <td>DS1</td>\n",
" <td>24/09/16</td>\n",
" <td>1</td>\n",
" <td>1.c</td>\n",
" <td>Cal</td>\n",
" <td>Prio</td>\n",
" <td></td>\n",
" <td>1.5</td>\n",
" <td>1</td>\n",
" <td>3</td>\n",
" <td>1.50</td>\n",
" <td>3.0</td>\n",
" <td>1.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>1</td>\n",
" <td>DS1</td>\n",
" <td>24/09/16</td>\n",
" <td>1</td>\n",
" <td>1.d</td>\n",
" <td>Cal</td>\n",
" <td>Prio</td>\n",
" <td></td>\n",
" <td>1.5</td>\n",
" <td>1</td>\n",
" <td>3</td>\n",
" <td>1.50</td>\n",
" <td>3.0</td>\n",
" <td>1.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>1</td>\n",
" <td>DS1</td>\n",
" <td>24/09/16</td>\n",
" <td>2</td>\n",
" <td>1</td>\n",
" <td>Rec</td>\n",
" <td>Proba</td>\n",
" <td></td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>0.33</td>\n",
" <td>1.0</td>\n",
" <td>0.33</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>1</td>\n",
" <td>DS1</td>\n",
" <td>24/09/16</td>\n",
" <td>2</td>\n",
" <td>2</td>\n",
" <td>Cal</td>\n",
" <td>Proba</td>\n",
" <td></td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>0.67</td>\n",
" <td>2.0</td>\n",
" <td>0.67</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>1</td>\n",
" <td>DS1</td>\n",
" <td>24/09/16</td>\n",
" <td>2</td>\n",
" <td>3 à 5</td>\n",
" <td>Com</td>\n",
" <td>Proba</td>\n",
" <td>Notation</td>\n",
" <td>1.5</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>0.50</td>\n",
" <td>1.0</td>\n",
" <td>0.33</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>1</td>\n",
" <td>DS1</td>\n",
" <td>24/09/16</td>\n",
" <td>2</td>\n",
" <td>3 à 5</td>\n",
" <td>Rep</td>\n",
" <td>Proba</td>\n",
" <td>Fraction</td>\n",
" <td>1.5</td>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>1.00</td>\n",
" <td>2.0</td>\n",
" <td>0.67</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>1</td>\n",
" <td>DS1</td>\n",
" <td>24/09/16</td>\n",
" <td>2</td>\n",
" <td>3 à 5</td>\n",
" <td>Div</td>\n",
" <td>Proba</td>\n",
" <td>Résultat</td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0.00</td>\n",
" <td>0.0</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>1</td>\n",
" <td>DS1</td>\n",
" <td>24/09/16</td>\n",
" <td>3</td>\n",
" <td></td>\n",
" <td>Com</td>\n",
" <td>Scra</td>\n",
" <td>Explication</td>\n",
" <td>1.5</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>0.50</td>\n",
" <td>1.0</td>\n",
" <td>0.33</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
" <td>1</td>\n",
" <td>DS1</td>\n",
" <td>24/09/16</td>\n",
" <td>3</td>\n",
" <td></td>\n",
" <td>Che</td>\n",
" <td>Scra</td>\n",
" <td>Trouver erreur</td>\n",
" <td>1.5</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>0.50</td>\n",
" <td>1.0</td>\n",
" <td>0.33</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11</th>\n",
" <td>1</td>\n",
" <td>DS1</td>\n",
" <td>24/09/16</td>\n",
" <td>4</td>\n",
" <td>1 et 2</td>\n",
" <td>Che</td>\n",
" <td>Ope</td>\n",
" <td></td>\n",
" <td>1.0</td>\n",
" <td>1</td>\n",
" <td>3</td>\n",
" <td>1.00</td>\n",
" <td>3.0</td>\n",
" <td>1.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>12</th>\n",
" <td>1</td>\n",
" <td>DS1</td>\n",
" <td>24/09/16</td>\n",
" <td>4</td>\n",
" <td>1 et 2</td>\n",
" <td>Com</td>\n",
" <td>Ope</td>\n",
" <td></td>\n",
" <td>1.5</td>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>1.00</td>\n",
" <td>2.0</td>\n",
" <td>0.67</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13</th>\n",
" <td>1</td>\n",
" <td>DS1</td>\n",
" <td>24/09/16</td>\n",
" <td>4</td>\n",
" <td>1 et 2</td>\n",
" <td>Cal</td>\n",
" <td>Ope</td>\n",
" <td></td>\n",
" <td>1.5</td>\n",
" <td>1</td>\n",
" <td>3</td>\n",
" <td>1.50</td>\n",
" <td>3.0</td>\n",
" <td>1.00</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Trimestre Nom Date Exercice Question Competence Domaine \\\n",
"0 1 DS2 05/11/16 1 1 Mod Frac \n",
"1 1 DS2 05/11/16 1 2 Cal Frac \n",
"2 1 DS2 05/11/16 2 Com Geo \n",
"3 1 DS2 05/11/16 2 Con Geo \n",
"4 1 DS2 05/11/16 2 Cal Geo \n",
"5 1 DS2 05/11/16 3 1 à 3 Che Ope \n",
"6 1 DS2 05/11/16 3 1 à 3 Cal Ope \n",
"7 1 DS2 05/11/16 3 1 à 3 Com Ope \n",
"8 1 DS2 05/11/16 4 1 Che Geo3D \n",
"9 1 DS2 05/11/16 4 1 Cal Litt \n",
"0 1 DM1 15/09/16 1 1.1 Cal Prio \n",
"1 1 DM1 15/09/16 1 1.2 Cal Prio \n",
"2 1 DM1 15/09/16 1 1.3 Cal Prio \n",
"3 1 DM1 15/09/16 1 1.4 Cal Prio \n",
"4 1 DM1 15/09/16 1 1.5 Cal Prio \n",
"5 1 DM1 15/09/16 1 1.6 Cal Prio \n",
"6 1 DM1 15/09/16 2 2.1 Com Proba \n",
"7 1 DM1 15/09/16 2 2.2 à 2.4 Com Proba \n",
"8 1 DM1 15/09/16 2 2.2 à 2.4 Rep Proba \n",
"9 1 DM1 15/09/16 2 2.2 à 2.4 Div Proba \n",
"10 1 DM1 15/09/16 2 2.5 Rai Proba \n",
"11 1 DM1 15/09/16 Malus Retard Div Div \n",
"12 1 DM1 15/09/16 Presentation Com Div \n",
"0 1 DS1 24/09/16 1 1.a Cal Prio \n",
"1 1 DS1 24/09/16 1 1.b Cal Prio \n",
"2 1 DS1 24/09/16 1 1.c Cal Prio \n",
"3 1 DS1 24/09/16 1 1.d Cal Prio \n",
"4 1 DS1 24/09/16 2 1 Rec Proba \n",
"5 1 DS1 24/09/16 2 2 Cal Proba \n",
"6 1 DS1 24/09/16 2 3 à 5 Com Proba \n",
"7 1 DS1 24/09/16 2 3 à 5 Rep Proba \n",
"8 1 DS1 24/09/16 2 3 à 5 Div Proba \n",
"9 1 DS1 24/09/16 3 Com Scra \n",
"10 1 DS1 24/09/16 3 Che Scra \n",
"11 1 DS1 24/09/16 4 1 et 2 Che Ope \n",
"12 1 DS1 24/09/16 4 1 et 2 Com Ope \n",
"13 1 DS1 24/09/16 4 1 et 2 Cal Ope \n",
"\n",
" Commentaire Bareme Est_nivele Score Note \\\n",
"0 Figure -> fraction 2.0 1 -1 0.00 \n",
"1 Égalité fractions 2.0 1 -1 0.00 \n",
"2 Communication 2.0 1 -1 0.00 \n",
"3 Tableau 2.0 1 -1 0.00 \n",
"4 Calculs 2.0 1 -1 0.00 \n",
"5 Mettre en valeur les informations 1.5 1 -1 0.00 \n",
"6 Choisir et faire les calculs 1.0 1 -1 0.00 \n",
"7 Phrases et étapes 1.5 1 -1 0.00 \n",
"8 Remplir le tableau 2.0 1 -1 0.00 \n",
"9 Calcul s+f-a 1.0 1 -1 0.00 \n",
"0 1.0 1 2 0.67 \n",
"1 1.0 1 3 1.00 \n",
"2 1.0 1 2 0.67 \n",
"3 1.0 1 2 0.67 \n",
"4 1.0 1 2 0.67 \n",
"5 1.0 1 0 0.00 \n",
"6 1.0 1 1 0.33 \n",
"7 Notation P(...) 1.0 1 0 0.00 \n",
"8 Fractions 1.0 1 0 0.00 \n",
"9 résultat 1.0 1 -1 0.00 \n",
"10 1.0 1 -1 0.00 \n",
"11 0.0 0 -1 0.00 \n",
"12 1.0 0 1 1.00 \n",
"0 1.5 1 3 1.50 \n",
"1 1.5 1 0 0.00 \n",
"2 1.5 1 3 1.50 \n",
"3 1.5 1 3 1.50 \n",
"4 1.0 1 1 0.33 \n",
"5 1.0 1 2 0.67 \n",
"6 Notation 1.5 1 1 0.50 \n",
"7 Fraction 1.5 1 2 1.00 \n",
"8 Résultat 1.0 1 0 0.00 \n",
"9 Explication 1.5 1 1 0.50 \n",
"10 Trouver erreur 1.5 1 1 0.50 \n",
"11 1.0 1 3 1.00 \n",
"12 1.5 1 2 1.00 \n",
"13 1.5 1 3 1.50 \n",
"\n",
" Niveau Normalise \n",
"0 NaN 0.00 \n",
"1 NaN 0.00 \n",
"2 NaN 0.00 \n",
"3 NaN 0.00 \n",
"4 NaN 0.00 \n",
"5 NaN 0.00 \n",
"6 NaN 0.00 \n",
"7 NaN 0.00 \n",
"8 NaN 0.00 \n",
"9 NaN 0.00 \n",
"0 2.0 0.67 \n",
"1 3.0 1.00 \n",
"2 2.0 0.67 \n",
"3 2.0 0.67 \n",
"4 2.0 0.67 \n",
"5 0.0 0.00 \n",
"6 1.0 0.33 \n",
"7 0.0 0.00 \n",
"8 0.0 0.00 \n",
"9 NaN 0.00 \n",
"10 NaN 0.00 \n",
"11 NaN NaN \n",
"12 3.0 1.00 \n",
"0 3.0 1.00 \n",
"1 0.0 0.00 \n",
"2 3.0 1.00 \n",
"3 3.0 1.00 \n",
"4 1.0 0.33 \n",
"5 2.0 0.67 \n",
"6 1.0 0.33 \n",
"7 2.0 0.67 \n",
"8 0.0 0.00 \n",
"9 1.0 0.33 \n",
"10 1.0 0.33 \n",
"11 3.0 1.00 \n",
"12 2.0 0.67 \n",
"13 3.0 1.00 "
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"scores"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th></th>\n",
" <th>Note</th>\n",
" <th>Bareme</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Nom</th>\n",
" <th>Exercice</th>\n",
" <th></th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th rowspan=\"4\" valign=\"top\">DM1</th>\n",
" <th>1</th>\n",
" <td>3.67</td>\n",
" <td>6.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>0.33</td>\n",
" <td>5.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Malus</th>\n",
" <td>0.00</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Presentation</th>\n",
" <td>1.00</td>\n",
" <td>1.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th rowspan=\"4\" valign=\"top\">DS1</th>\n",
" <th>1</th>\n",
" <td>4.50</td>\n",
" <td>6.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>2.50</td>\n",
" <td>6.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>1.00</td>\n",
" <td>3.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>3.50</td>\n",
" <td>4.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th rowspan=\"4\" valign=\"top\">DS2</th>\n",
" <th>1</th>\n",
" <td>0.00</td>\n",
" <td>4.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>0.00</td>\n",
" <td>6.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>0.00</td>\n",
" <td>4.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>0.00</td>\n",
" <td>3.0</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Note Bareme\n",
"Nom Exercice \n",
"DM1 1 3.67 6.0\n",
" 2 0.33 5.0\n",
" Malus 0.00 0.0\n",
" Presentation 1.00 1.0\n",
"DS1 1 4.50 6.0\n",
" 2 2.50 6.0\n",
" 3 1.00 3.0\n",
" 4 3.50 4.0\n",
"DS2 1 0.00 4.0\n",
" 2 0.00 6.0\n",
" 3 0.00 4.0\n",
" 4 0.00 3.0"
]
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"exercises_scores = scores.groupby([\"Nom\", \"Exercice\"]).agg({\"Note\": \"sum\", \"Bareme\": \"sum\"})\n",
"exercises_scores"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Note</th>\n",
" <th>Bareme</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Nom</th>\n",
" <th></th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>DM1</th>\n",
" <td>5.0</td>\n",
" <td>12.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>DS1</th>\n",
" <td>11.5</td>\n",
" <td>19.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>DS2</th>\n",
" <td>0.0</td>\n",
" <td>17.0</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Note Bareme\n",
"Nom \n",
"DM1 5.0 12.0\n",
"DS1 11.5 19.0\n",
"DS2 0.0 17.0"
]
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"assessment_scores = scores.groupby([\"Nom\"]).agg({\"Note\": \"sum\", \"Bareme\": \"sum\"})\n",
"assessment_scores"
]
},
{
"cell_type": "code",
"execution_count": 4,
2019-08-04 14:25:44 +00:00
"metadata": {},
"outputs": [
{
"data": {
"text/markdown": [
2019-08-20 19:15:39 +00:00
"# ABDOU Asmahane en 308"
2019-08-04 14:25:44 +00:00
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
2019-08-20 19:15:39 +00:00
"execution_count": 4,
2019-08-04 14:25:44 +00:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"md(f\"# {student} en {tribe}\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"celltoolbar": "Tags",
"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",
2019-08-20 19:15:39 +00:00
"version": "3.7.4"
2019-08-04 14:25:44 +00:00
}
},
"nbformat": 4,
"nbformat_minor": 2
}