{ "cells": [ { "cell_type": "code", "execution_count": 48, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import pandas as pd\n", "from texenv import texenv\n", "%matplotlib inline" ] }, { "cell_type": "code", "execution_count": 49, "metadata": { "collapsed": true }, "outputs": [], "source": [ "ds_name = \"DM_0408\"\n", "classe = \"tstmg\"" ] }, { "cell_type": "code", "execution_count": 50, "metadata": { "collapsed": false, "scrolled": true }, "outputs": [], "source": [ "notes = pd.ExcelFile(\"./../../../notes_\"+classe+\".xls\")\n", "notes.sheet_names\n", "notes = notes.parse(ds_name)" ] }, { "cell_type": "code", "execution_count": 51, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "Index(['DM_0408', 'av_arrondi', 'Exercice 1', '1 (dériver)', '2 (étude de signe)', '3 (tableau de variations)', '4 (allure)', '5 (extrema)', 'Exercice 2', '1 (développer)', '2 (developper)', 'Exercice 3', 'Delta', 'racines', 'tableau de signe', 'Malus'], dtype='object')" ] }, "execution_count": 51, "metadata": {}, "output_type": "execute_result" } ], "source": [ "notes.index" ] }, { "cell_type": "code", "execution_count": 52, "metadata": { "collapsed": true }, "outputs": [], "source": [ "notes = notes.T" ] }, { "cell_type": "code", "execution_count": 53, "metadata": { "collapsed": false }, "outputs": [], "source": [ "notes = notes.drop(\"av_arrondi\", axis=1)" ] }, { "cell_type": "code", "execution_count": 54, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
DM_0408Exercice 11 (dériver)2 (étude de signe)3 (tableau de variations)4 (allure)5 (extrema)Exercice 21 (développer)2 (developper)Exercice 3Deltaracinestableau de signeMalus
ABDIMI Sofiane12.05.333333332NaNNaN2.0000003NaN4.666667322NaN
ABLAY GamzeNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN
ABREU Tania14.06.6666673313NaN1.333333206.000000333NaN
ANDRINO Kévin14.06.666667331212.000000215.333333332NaN
APATOUT Sarah12.05.333333332NaNNaN2.666667224.000000222NaN
CARPENTIER LucNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN
CESAR Laurelie5.55.3333332222NaN0.000000000.000000NaNNaNNaNNaN
CHARLES Noemie16.59.333333333232.000000305.333333332NaN
DORE Killian10.56.666667223212.000000212.000000111NaN
DUMOULIN Alexis14.06.666667232212.666667314.833333332-0.5
GAMBOTTI Félicie18.09.333333333234.000000334.666667232NaN
GONCALVES Samantha0.00.000000NaNNaNNaNNaNNaN0.000000NaNNaN0.000000NaNNaNNaNNaN
GUEDDA Reda10.04.00000033NaNNaNNaN2.000000214.000000132NaN
HALIMI Samir0.00.000000NaNNaNNaNNaNNaN0.000000NaNNaN0.000000NaNNaNNaNNaN
HENOUDA Mohamed-Ameen0.00.000000NaNNaNNaNNaNNaN0.000000NaNNaN0.000000NaNNaNNaNNaN
KISA Seda18.010.000000333332.666667315.333333233NaN
KUMARESHAN YogithaNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN
KUSPINAR Zehra18.09.333333333232.666667316.000000333NaN
LUYINDULA Jeannette0.00.000000NaNNaNNaNNaNNaN0.000000NaNNaN0.000000NaNNaNNaNNaN
MAGASSA Doua17.510.000000333332.0000003NaN5.333333332NaN
MARIAVASAN Alanton18.510.000000333332.666667316.000000333NaN
MARMOUGET MarineNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN
MEKROUDI Dia10.52.0000002010NaN4.000000334.333333332-1.0
MULTERER Cédric13.57.3333333332NaN0.666667105.333333332NaN
OUESLATI Bilal14.58.666667332321.333333114.666667322NaN
OZER Servan14.07.333333333201.333333115.333333332NaN
POMPEE Alan14.55.3333333221NaN4.000000335.333333332NaN
QUEIJAS Lénicia18.09.333333333322.666667316.000000333NaN
TAYLOR Gloria14.06.6666673232NaN4.000000333.333333221NaN
ZENATI Amel14.010.000000333330.000000004.000000123NaN
ZIKKI Amine0.00.000000NaNNaNNaNNaNNaN0.000000NaNNaN0.000000NaNNaNNaNNaN
\n", "
" ], "text/plain": [ " DM_0408 Exercice 1 1 (dériver) 2 (étude de signe) \\\n", "ABDIMI Sofiane 12.0 5.333333 3 3 \n", "ABLAY Gamze NaN NaN NaN NaN \n", "ABREU Tania 14.0 6.666667 3 3 \n", "ANDRINO Kévin 14.0 6.666667 3 3 \n", "APATOUT Sarah 12.0 5.333333 3 3 \n", "CARPENTIER Luc NaN NaN NaN NaN \n", "CESAR Laurelie 5.5 5.333333 2 2 \n", "CHARLES Noemie 16.5 9.333333 3 3 \n", "DORE Killian 10.5 6.666667 2 2 \n", "DUMOULIN Alexis 14.0 6.666667 2 3 \n", "GAMBOTTI Félicie 18.0 9.333333 3 3 \n", "GONCALVES Samantha 0.0 0.000000 NaN NaN \n", "GUEDDA Reda 10.0 4.000000 3 3 \n", "HALIMI Samir 0.0 0.000000 NaN NaN \n", "HENOUDA Mohamed-Ameen 0.0 0.000000 NaN NaN \n", "KISA Seda 18.0 10.000000 3 3 \n", "KUMARESHAN Yogitha NaN NaN NaN NaN \n", "KUSPINAR Zehra 18.0 9.333333 3 3 \n", "LUYINDULA Jeannette 0.0 0.000000 NaN NaN \n", "MAGASSA Doua 17.5 10.000000 3 3 \n", "MARIAVASAN Alanton 18.5 10.000000 3 3 \n", "MARMOUGET Marine NaN NaN NaN NaN \n", "MEKROUDI Dia 10.5 2.000000 2 0 \n", "MULTERER Cédric 13.5 7.333333 3 3 \n", "OUESLATI Bilal 14.5 8.666667 3 3 \n", "OZER Servan 14.0 7.333333 3 3 \n", "POMPEE Alan 14.5 5.333333 3 2 \n", "QUEIJAS Lénicia 18.0 9.333333 3 3 \n", "TAYLOR Gloria 14.0 6.666667 3 2 \n", "ZENATI Amel 14.0 10.000000 3 3 \n", "ZIKKI Amine 0.0 0.000000 NaN NaN \n", "\n", " 3 (tableau de variations) 4 (allure) 5 (extrema) \\\n", "ABDIMI Sofiane 2 NaN NaN \n", "ABLAY Gamze NaN NaN NaN \n", "ABREU Tania 1 3 NaN \n", "ANDRINO Kévin 1 2 1 \n", "APATOUT Sarah 2 NaN NaN \n", "CARPENTIER Luc NaN NaN NaN \n", "CESAR Laurelie 2 2 NaN \n", "CHARLES Noemie 3 2 3 \n", "DORE Killian 3 2 1 \n", "DUMOULIN Alexis 2 2 1 \n", "GAMBOTTI Félicie 3 2 3 \n", "GONCALVES Samantha NaN NaN NaN \n", "GUEDDA Reda NaN NaN NaN \n", "HALIMI Samir NaN NaN NaN \n", "HENOUDA Mohamed-Ameen NaN NaN NaN \n", "KISA Seda 3 3 3 \n", "KUMARESHAN Yogitha NaN NaN NaN \n", "KUSPINAR Zehra 3 2 3 \n", "LUYINDULA Jeannette NaN NaN NaN \n", "MAGASSA Doua 3 3 3 \n", "MARIAVASAN Alanton 3 3 3 \n", "MARMOUGET Marine NaN NaN NaN \n", "MEKROUDI Dia 1 0 NaN \n", "MULTERER Cédric 3 2 NaN \n", "OUESLATI Bilal 2 3 2 \n", "OZER Servan 3 2 0 \n", "POMPEE Alan 2 1 NaN \n", "QUEIJAS Lénicia 3 3 2 \n", "TAYLOR Gloria 3 2 NaN \n", "ZENATI Amel 3 3 3 \n", "ZIKKI Amine NaN NaN NaN \n", "\n", " Exercice 2 1 (développer) 2 (developper) Exercice 3 \\\n", "ABDIMI Sofiane 2.000000 3 NaN 4.666667 \n", "ABLAY Gamze NaN NaN NaN NaN \n", "ABREU Tania 1.333333 2 0 6.000000 \n", "ANDRINO Kévin 2.000000 2 1 5.333333 \n", "APATOUT Sarah 2.666667 2 2 4.000000 \n", "CARPENTIER Luc NaN NaN NaN NaN \n", "CESAR Laurelie 0.000000 0 0 0.000000 \n", "CHARLES Noemie 2.000000 3 0 5.333333 \n", "DORE Killian 2.000000 2 1 2.000000 \n", "DUMOULIN Alexis 2.666667 3 1 4.833333 \n", "GAMBOTTI Félicie 4.000000 3 3 4.666667 \n", "GONCALVES Samantha 0.000000 NaN NaN 0.000000 \n", "GUEDDA Reda 2.000000 2 1 4.000000 \n", "HALIMI Samir 0.000000 NaN NaN 0.000000 \n", "HENOUDA Mohamed-Ameen 0.000000 NaN NaN 0.000000 \n", "KISA Seda 2.666667 3 1 5.333333 \n", "KUMARESHAN Yogitha NaN NaN NaN NaN \n", "KUSPINAR Zehra 2.666667 3 1 6.000000 \n", "LUYINDULA Jeannette 0.000000 NaN NaN 0.000000 \n", "MAGASSA Doua 2.000000 3 NaN 5.333333 \n", "MARIAVASAN Alanton 2.666667 3 1 6.000000 \n", "MARMOUGET Marine NaN NaN NaN NaN \n", "MEKROUDI Dia 4.000000 3 3 4.333333 \n", "MULTERER Cédric 0.666667 1 0 5.333333 \n", "OUESLATI Bilal 1.333333 1 1 4.666667 \n", "OZER Servan 1.333333 1 1 5.333333 \n", "POMPEE Alan 4.000000 3 3 5.333333 \n", "QUEIJAS Lénicia 2.666667 3 1 6.000000 \n", "TAYLOR Gloria 4.000000 3 3 3.333333 \n", "ZENATI Amel 0.000000 0 0 4.000000 \n", "ZIKKI Amine 0.000000 NaN NaN 0.000000 \n", "\n", " Delta racines tableau de signe Malus \n", "ABDIMI Sofiane 3 2 2 NaN \n", "ABLAY Gamze NaN NaN NaN NaN \n", "ABREU Tania 3 3 3 NaN \n", "ANDRINO Kévin 3 3 2 NaN \n", "APATOUT Sarah 2 2 2 NaN \n", "CARPENTIER Luc NaN NaN NaN NaN \n", "CESAR Laurelie NaN NaN NaN NaN \n", "CHARLES Noemie 3 3 2 NaN \n", "DORE Killian 1 1 1 NaN \n", "DUMOULIN Alexis 3 3 2 -0.5 \n", "GAMBOTTI Félicie 2 3 2 NaN \n", "GONCALVES Samantha NaN NaN NaN NaN \n", "GUEDDA Reda 1 3 2 NaN \n", "HALIMI Samir NaN NaN NaN NaN \n", "HENOUDA Mohamed-Ameen NaN NaN NaN NaN \n", "KISA Seda 2 3 3 NaN \n", "KUMARESHAN Yogitha NaN NaN NaN NaN \n", "KUSPINAR Zehra 3 3 3 NaN \n", "LUYINDULA Jeannette NaN NaN NaN NaN \n", "MAGASSA Doua 3 3 2 NaN \n", "MARIAVASAN Alanton 3 3 3 NaN \n", "MARMOUGET Marine NaN NaN NaN NaN \n", "MEKROUDI Dia 3 3 2 -1.0 \n", "MULTERER Cédric 3 3 2 NaN \n", "OUESLATI Bilal 3 2 2 NaN \n", "OZER Servan 3 3 2 NaN \n", "POMPEE Alan 3 3 2 NaN \n", "QUEIJAS Lénicia 3 3 3 NaN \n", "TAYLOR Gloria 2 2 1 NaN \n", "ZENATI Amel 1 2 3 NaN \n", "ZIKKI Amine NaN NaN NaN NaN " ] }, "execution_count": 54, "metadata": {}, "output_type": "execute_result" } ], "source": [ "barem = notes[:1]\n", "notes = notes[1:]\n", "notes" ] }, { "cell_type": "code", "execution_count": 55, "metadata": { "collapsed": false }, "outputs": [], "source": [ "notes = notes[notes[ds_name].notnull()]\n", "#notes" ] }, { "cell_type": "code", "execution_count": 56, "metadata": { "collapsed": false }, "outputs": [], "source": [ "notes = notes.astype(float)" ] }, { "cell_type": "code", "execution_count": 57, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "count 27.000000\n", "mean 11.537037\n", "std 6.325963\n", "min 0.000000\n", "25% 10.250000\n", "50% 14.000000\n", "75% 15.500000\n", "max 18.500000\n", "Name: DM_0408, dtype: float64" ] }, "execution_count": 57, "metadata": {}, "output_type": "execute_result" } ], "source": [ "notes[ds_name].describe()" ] }, { "cell_type": "code", "execution_count": 58, "metadata": { "collapsed": false }, "outputs": [], "source": [ "list_exo = [\"Exercice 1\", \"Exercice 2\", \"Exercice 3\"]" ] }, { "cell_type": "code", "execution_count": 59, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Exercice 1Exercice 2Exercice 3
ABDIMI Sofiane5.332.004.67
ABREU Tania6.671.336.00
ANDRINO Kévin6.672.005.33
APATOUT Sarah5.332.674.00
CESAR Laurelie5.330.000.00
CHARLES Noemie9.332.005.33
DORE Killian6.672.002.00
DUMOULIN Alexis6.672.674.83
GAMBOTTI Félicie9.334.004.67
GONCALVES Samantha0.000.000.00
GUEDDA Reda4.002.004.00
HALIMI Samir0.000.000.00
HENOUDA Mohamed-Ameen0.000.000.00
KISA Seda10.002.675.33
KUSPINAR Zehra9.332.676.00
LUYINDULA Jeannette0.000.000.00
MAGASSA Doua10.002.005.33
MARIAVASAN Alanton10.002.676.00
MEKROUDI Dia2.004.004.33
MULTERER Cédric7.330.675.33
OUESLATI Bilal8.671.334.67
OZER Servan7.331.335.33
POMPEE Alan5.334.005.33
QUEIJAS Lénicia9.332.676.00
TAYLOR Gloria6.674.003.33
ZENATI Amel10.000.004.00
ZIKKI Amine0.000.000.00
\n", "
" ], "text/plain": [ " Exercice 1 Exercice 2 Exercice 3\n", "ABDIMI Sofiane 5.33 2.00 4.67\n", "ABREU Tania 6.67 1.33 6.00\n", "ANDRINO Kévin 6.67 2.00 5.33\n", "APATOUT Sarah 5.33 2.67 4.00\n", "CESAR Laurelie 5.33 0.00 0.00\n", "CHARLES Noemie 9.33 2.00 5.33\n", "DORE Killian 6.67 2.00 2.00\n", "DUMOULIN Alexis 6.67 2.67 4.83\n", "GAMBOTTI Félicie 9.33 4.00 4.67\n", "GONCALVES Samantha 0.00 0.00 0.00\n", "GUEDDA Reda 4.00 2.00 4.00\n", "HALIMI Samir 0.00 0.00 0.00\n", "HENOUDA Mohamed-Ameen 0.00 0.00 0.00\n", "KISA Seda 10.00 2.67 5.33\n", "KUSPINAR Zehra 9.33 2.67 6.00\n", "LUYINDULA Jeannette 0.00 0.00 0.00\n", "MAGASSA Doua 10.00 2.00 5.33\n", "MARIAVASAN Alanton 10.00 2.67 6.00\n", "MEKROUDI Dia 2.00 4.00 4.33\n", "MULTERER Cédric 7.33 0.67 5.33\n", "OUESLATI Bilal 8.67 1.33 4.67\n", "OZER Servan 7.33 1.33 5.33\n", "POMPEE Alan 5.33 4.00 5.33\n", "QUEIJAS Lénicia 9.33 2.67 6.00\n", "TAYLOR Gloria 6.67 4.00 3.33\n", "ZENATI Amel 10.00 0.00 4.00\n", "ZIKKI Amine 0.00 0.00 0.00" ] }, "execution_count": 59, "metadata": {}, "output_type": "execute_result" } ], "source": [ "notes[list_exo] = notes[list_exo].applymap(lambda x:round(x,2))\n", "notes[list_exo]" ] }, { "cell_type": "code", "execution_count": 60, "metadata": { "collapsed": false }, "outputs": [], "source": [ "def toRepVal(val):\n", " if pd.isnull(val):\n", " return \"\\\\NoRep\"\n", " elif val == 0:\n", " return \"\\\\RepZ\"\n", " elif val == 1:\n", " return \"\\\\RepU\"\n", " elif val == 2:\n", " return \"\\\\RepD\"\n", " elif val == 3:\n", " return \"\\\\RepT\"\n", " else:\n", " return val" ] }, { "cell_type": "code", "execution_count": 61, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "['1 (dériver)',\n", " '2 (étude de signe)',\n", " '3 (tableau de variations)',\n", " '4 (allure)',\n", " '5 (extrema)',\n", " '1 (développer)',\n", " '2 (developper)',\n", " 'Delta',\n", " 'racines',\n", " 'tableau de signe']" ] }, "execution_count": 61, "metadata": {}, "output_type": "execute_result" } ], "source": [ "sous_exo = [i for i in notes.T.index if i not in list_exo + [ds_name, \"Bonus\", \"Malus\", \"Num_sujet\"]]\n", "sous_exo" ] }, { "cell_type": "code", "execution_count": 62, "metadata": { "collapsed": false }, "outputs": [], "source": [ "notes[sous_exo] = notes[sous_exo].applymap(toRepVal)\n", "notes[\"Malus\"] = notes[\"Malus\"].fillna(\".\")" ] }, { "cell_type": "code", "execution_count": 63, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "15" ] }, "execution_count": 63, "metadata": {}, "output_type": "execute_result" } ], "source": [ "len(notes.T.index)" ] }, { "cell_type": "code", "execution_count": 64, "metadata": { "collapsed": false }, "outputs": [], "source": [ "bilan = texenv.get_template(\"tpl_bilan.tex\")\n", "with open(\"./bilan.tex\",\"w\") as f:\n", " f.write(bilan.render(eleves = notes, barem = barem, ds_name = ds_name))" ] }, { "cell_type": "code", "execution_count": 65, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
DM_0408Exercice 11 (dériver)2 (étude de signe)3 (tableau de variations)4 (allure)5 (extrema)Exercice 21 (développer)2 (developper)Exercice 3Deltaracinestableau de signeMalus
ABDIMI Sofiane12.05.33\\RepT\\RepT\\RepD\\NoRep\\NoRep2.00\\RepT\\NoRep4.67\\RepT\\RepD\\RepD.
ABREU Tania14.06.67\\RepT\\RepT\\RepU\\RepT\\NoRep1.33\\RepD\\RepZ6.00\\RepT\\RepT\\RepT.
ANDRINO Kévin14.06.67\\RepT\\RepT\\RepU\\RepD\\RepU2.00\\RepD\\RepU5.33\\RepT\\RepT\\RepD.
APATOUT Sarah12.05.33\\RepT\\RepT\\RepD\\NoRep\\NoRep2.67\\RepD\\RepD4.00\\RepD\\RepD\\RepD.
CESAR Laurelie5.55.33\\RepD\\RepD\\RepD\\RepD\\NoRep0.00\\RepZ\\RepZ0.00\\NoRep\\NoRep\\NoRep.
CHARLES Noemie16.59.33\\RepT\\RepT\\RepT\\RepD\\RepT2.00\\RepT\\RepZ5.33\\RepT\\RepT\\RepD.
DORE Killian10.56.67\\RepD\\RepD\\RepT\\RepD\\RepU2.00\\RepD\\RepU2.00\\RepU\\RepU\\RepU.
DUMOULIN Alexis14.06.67\\RepD\\RepT\\RepD\\RepD\\RepU2.67\\RepT\\RepU4.83\\RepT\\RepT\\RepD-0.5
GAMBOTTI Félicie18.09.33\\RepT\\RepT\\RepT\\RepD\\RepT4.00\\RepT\\RepT4.67\\RepD\\RepT\\RepD.
GONCALVES Samantha0.00.00\\NoRep\\NoRep\\NoRep\\NoRep\\NoRep0.00\\NoRep\\NoRep0.00\\NoRep\\NoRep\\NoRep.
GUEDDA Reda10.04.00\\RepT\\RepT\\NoRep\\NoRep\\NoRep2.00\\RepD\\RepU4.00\\RepU\\RepT\\RepD.
HALIMI Samir0.00.00\\NoRep\\NoRep\\NoRep\\NoRep\\NoRep0.00\\NoRep\\NoRep0.00\\NoRep\\NoRep\\NoRep.
HENOUDA Mohamed-Ameen0.00.00\\NoRep\\NoRep\\NoRep\\NoRep\\NoRep0.00\\NoRep\\NoRep0.00\\NoRep\\NoRep\\NoRep.
KISA Seda18.010.00\\RepT\\RepT\\RepT\\RepT\\RepT2.67\\RepT\\RepU5.33\\RepD\\RepT\\RepT.
KUSPINAR Zehra18.09.33\\RepT\\RepT\\RepT\\RepD\\RepT2.67\\RepT\\RepU6.00\\RepT\\RepT\\RepT.
LUYINDULA Jeannette0.00.00\\NoRep\\NoRep\\NoRep\\NoRep\\NoRep0.00\\NoRep\\NoRep0.00\\NoRep\\NoRep\\NoRep.
MAGASSA Doua17.510.00\\RepT\\RepT\\RepT\\RepT\\RepT2.00\\RepT\\NoRep5.33\\RepT\\RepT\\RepD.
MARIAVASAN Alanton18.510.00\\RepT\\RepT\\RepT\\RepT\\RepT2.67\\RepT\\RepU6.00\\RepT\\RepT\\RepT.
MEKROUDI Dia10.52.00\\RepD\\RepZ\\RepU\\RepZ\\NoRep4.00\\RepT\\RepT4.33\\RepT\\RepT\\RepD-1
MULTERER Cédric13.57.33\\RepT\\RepT\\RepT\\RepD\\NoRep0.67\\RepU\\RepZ5.33\\RepT\\RepT\\RepD.
OUESLATI Bilal14.58.67\\RepT\\RepT\\RepD\\RepT\\RepD1.33\\RepU\\RepU4.67\\RepT\\RepD\\RepD.
OZER Servan14.07.33\\RepT\\RepT\\RepT\\RepD\\RepZ1.33\\RepU\\RepU5.33\\RepT\\RepT\\RepD.
POMPEE Alan14.55.33\\RepT\\RepD\\RepD\\RepU\\NoRep4.00\\RepT\\RepT5.33\\RepT\\RepT\\RepD.
QUEIJAS Lénicia18.09.33\\RepT\\RepT\\RepT\\RepT\\RepD2.67\\RepT\\RepU6.00\\RepT\\RepT\\RepT.
TAYLOR Gloria14.06.67\\RepT\\RepD\\RepT\\RepD\\NoRep4.00\\RepT\\RepT3.33\\RepD\\RepD\\RepU.
ZENATI Amel14.010.00\\RepT\\RepT\\RepT\\RepT\\RepT0.00\\RepZ\\RepZ4.00\\RepU\\RepD\\RepT.
ZIKKI Amine0.00.00\\NoRep\\NoRep\\NoRep\\NoRep\\NoRep0.00\\NoRep\\NoRep0.00\\NoRep\\NoRep\\NoRep.
\n", "
" ], "text/plain": [ " DM_0408 Exercice 1 1 (dériver) 2 (étude de signe) \\\n", "ABDIMI Sofiane 12.0 5.33 \\RepT \\RepT \n", "ABREU Tania 14.0 6.67 \\RepT \\RepT \n", "ANDRINO Kévin 14.0 6.67 \\RepT \\RepT \n", "APATOUT Sarah 12.0 5.33 \\RepT \\RepT \n", "CESAR Laurelie 5.5 5.33 \\RepD \\RepD \n", "CHARLES Noemie 16.5 9.33 \\RepT \\RepT \n", "DORE Killian 10.5 6.67 \\RepD \\RepD \n", "DUMOULIN Alexis 14.0 6.67 \\RepD \\RepT \n", "GAMBOTTI Félicie 18.0 9.33 \\RepT \\RepT \n", "GONCALVES Samantha 0.0 0.00 \\NoRep \\NoRep \n", "GUEDDA Reda 10.0 4.00 \\RepT \\RepT \n", "HALIMI Samir 0.0 0.00 \\NoRep \\NoRep \n", "HENOUDA Mohamed-Ameen 0.0 0.00 \\NoRep \\NoRep \n", "KISA Seda 18.0 10.00 \\RepT \\RepT \n", "KUSPINAR Zehra 18.0 9.33 \\RepT \\RepT \n", "LUYINDULA Jeannette 0.0 0.00 \\NoRep \\NoRep \n", "MAGASSA Doua 17.5 10.00 \\RepT \\RepT \n", "MARIAVASAN Alanton 18.5 10.00 \\RepT \\RepT \n", "MEKROUDI Dia 10.5 2.00 \\RepD \\RepZ \n", "MULTERER Cédric 13.5 7.33 \\RepT \\RepT \n", "OUESLATI Bilal 14.5 8.67 \\RepT \\RepT \n", "OZER Servan 14.0 7.33 \\RepT \\RepT \n", "POMPEE Alan 14.5 5.33 \\RepT \\RepD \n", "QUEIJAS Lénicia 18.0 9.33 \\RepT \\RepT \n", "TAYLOR Gloria 14.0 6.67 \\RepT \\RepD \n", "ZENATI Amel 14.0 10.00 \\RepT \\RepT \n", "ZIKKI Amine 0.0 0.00 \\NoRep \\NoRep \n", "\n", " 3 (tableau de variations) 4 (allure) 5 (extrema) \\\n", "ABDIMI Sofiane \\RepD \\NoRep \\NoRep \n", "ABREU Tania \\RepU \\RepT \\NoRep \n", "ANDRINO Kévin \\RepU \\RepD \\RepU \n", "APATOUT Sarah \\RepD \\NoRep \\NoRep \n", "CESAR Laurelie \\RepD \\RepD \\NoRep \n", "CHARLES Noemie \\RepT \\RepD \\RepT \n", "DORE Killian \\RepT \\RepD \\RepU \n", "DUMOULIN Alexis \\RepD \\RepD \\RepU \n", "GAMBOTTI Félicie \\RepT \\RepD \\RepT \n", "GONCALVES Samantha \\NoRep \\NoRep \\NoRep \n", "GUEDDA Reda \\NoRep \\NoRep \\NoRep \n", "HALIMI Samir \\NoRep \\NoRep \\NoRep \n", "HENOUDA Mohamed-Ameen \\NoRep \\NoRep \\NoRep \n", "KISA Seda \\RepT \\RepT \\RepT \n", "KUSPINAR Zehra \\RepT \\RepD \\RepT \n", "LUYINDULA Jeannette \\NoRep \\NoRep \\NoRep \n", "MAGASSA Doua \\RepT \\RepT \\RepT \n", "MARIAVASAN Alanton \\RepT \\RepT \\RepT \n", "MEKROUDI Dia \\RepU \\RepZ \\NoRep \n", "MULTERER Cédric \\RepT \\RepD \\NoRep \n", "OUESLATI Bilal \\RepD \\RepT \\RepD \n", "OZER Servan \\RepT \\RepD \\RepZ \n", "POMPEE Alan \\RepD \\RepU \\NoRep \n", "QUEIJAS Lénicia \\RepT \\RepT \\RepD \n", "TAYLOR Gloria \\RepT \\RepD \\NoRep \n", "ZENATI Amel \\RepT \\RepT \\RepT \n", "ZIKKI Amine \\NoRep \\NoRep \\NoRep \n", "\n", " Exercice 2 1 (développer) 2 (developper) Exercice 3 \\\n", "ABDIMI Sofiane 2.00 \\RepT \\NoRep 4.67 \n", "ABREU Tania 1.33 \\RepD \\RepZ 6.00 \n", "ANDRINO Kévin 2.00 \\RepD \\RepU 5.33 \n", "APATOUT Sarah 2.67 \\RepD \\RepD 4.00 \n", "CESAR Laurelie 0.00 \\RepZ \\RepZ 0.00 \n", "CHARLES Noemie 2.00 \\RepT \\RepZ 5.33 \n", "DORE Killian 2.00 \\RepD \\RepU 2.00 \n", "DUMOULIN Alexis 2.67 \\RepT \\RepU 4.83 \n", "GAMBOTTI Félicie 4.00 \\RepT \\RepT 4.67 \n", "GONCALVES Samantha 0.00 \\NoRep \\NoRep 0.00 \n", "GUEDDA Reda 2.00 \\RepD \\RepU 4.00 \n", "HALIMI Samir 0.00 \\NoRep \\NoRep 0.00 \n", "HENOUDA Mohamed-Ameen 0.00 \\NoRep \\NoRep 0.00 \n", "KISA Seda 2.67 \\RepT \\RepU 5.33 \n", "KUSPINAR Zehra 2.67 \\RepT \\RepU 6.00 \n", "LUYINDULA Jeannette 0.00 \\NoRep \\NoRep 0.00 \n", "MAGASSA Doua 2.00 \\RepT \\NoRep 5.33 \n", "MARIAVASAN Alanton 2.67 \\RepT \\RepU 6.00 \n", "MEKROUDI Dia 4.00 \\RepT \\RepT 4.33 \n", "MULTERER Cédric 0.67 \\RepU \\RepZ 5.33 \n", "OUESLATI Bilal 1.33 \\RepU \\RepU 4.67 \n", "OZER Servan 1.33 \\RepU \\RepU 5.33 \n", "POMPEE Alan 4.00 \\RepT \\RepT 5.33 \n", "QUEIJAS Lénicia 2.67 \\RepT \\RepU 6.00 \n", "TAYLOR Gloria 4.00 \\RepT \\RepT 3.33 \n", "ZENATI Amel 0.00 \\RepZ \\RepZ 4.00 \n", "ZIKKI Amine 0.00 \\NoRep \\NoRep 0.00 \n", "\n", " Delta racines tableau de signe Malus \n", "ABDIMI Sofiane \\RepT \\RepD \\RepD . \n", "ABREU Tania \\RepT \\RepT \\RepT . \n", "ANDRINO Kévin \\RepT \\RepT \\RepD . \n", "APATOUT Sarah \\RepD \\RepD \\RepD . \n", "CESAR Laurelie \\NoRep \\NoRep \\NoRep . \n", "CHARLES Noemie \\RepT \\RepT \\RepD . \n", "DORE Killian \\RepU \\RepU \\RepU . \n", "DUMOULIN Alexis \\RepT \\RepT \\RepD -0.5 \n", "GAMBOTTI Félicie \\RepD \\RepT \\RepD . \n", "GONCALVES Samantha \\NoRep \\NoRep \\NoRep . \n", "GUEDDA Reda \\RepU \\RepT \\RepD . \n", "HALIMI Samir \\NoRep \\NoRep \\NoRep . \n", "HENOUDA Mohamed-Ameen \\NoRep \\NoRep \\NoRep . \n", "KISA Seda \\RepD \\RepT \\RepT . \n", "KUSPINAR Zehra \\RepT \\RepT \\RepT . \n", "LUYINDULA Jeannette \\NoRep \\NoRep \\NoRep . \n", "MAGASSA Doua \\RepT \\RepT \\RepD . \n", "MARIAVASAN Alanton \\RepT \\RepT \\RepT . \n", "MEKROUDI Dia \\RepT \\RepT \\RepD -1 \n", "MULTERER Cédric \\RepT \\RepT \\RepD . \n", "OUESLATI Bilal \\RepT \\RepD \\RepD . \n", "OZER Servan \\RepT \\RepT \\RepD . \n", "POMPEE Alan \\RepT \\RepT \\RepD . \n", "QUEIJAS Lénicia \\RepT \\RepT \\RepT . \n", "TAYLOR Gloria \\RepD \\RepD \\RepU . \n", "ZENATI Amel \\RepU \\RepD \\RepT . \n", "ZIKKI Amine \\NoRep \\NoRep \\NoRep . " ] }, "execution_count": 65, "metadata": {}, "output_type": "execute_result" } ], "source": [ "notes" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] } ], "metadata": { "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.4.3" } }, "nbformat": 4, "nbformat_minor": 0 }