{ "cells": [ { "cell_type": "code", "execution_count": 74, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import pandas as pd\n", "from opytex import texenv\n", "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Informations sur le devoir" ] }, { "cell_type": "code", "execution_count": 75, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "{'classe': '\\\\TSTMG', 'date': '16 mai 2015', 'titre': 'DST 04'}" ] }, "execution_count": 75, "metadata": {}, "output_type": "execute_result" } ], "source": [ "ds_name = 'DST_04'\n", "classe = 'tstmg'\n", "\n", "latex_info = {}\n", "latex_info['titre'] = 'DST 04' \n", "latex_info['classe'] = '\\\\TSTMG'\n", "latex_info['date'] = '16 mai 2015'\n", "latex_info" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Import et premiers traitements" ] }, { "cell_type": "code", "execution_count": 76, "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": 77, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "Index(['DST_04', 'av_arrondi', 'Exercice 1', 'QCM', '1.1', '1.2', 'Exercice 2',\n", " '2.A.1', '2.A.2', '2.A.3.a', '2.A.3.b', '2.A.3.c', '2.B.1', '2.B.2',\n", " 'Exercice 3', '3.A.1', '3.A.2', '3.B.1', '3.B.2', '3.B.3', 'Exercice 4',\n", " '4.A.1', '4.A.1.a', '4.A.1.b', '4.B.1', '4.B.2', '4.B.3'],\n", " dtype='object')" ] }, "execution_count": 77, "metadata": {}, "output_type": "execute_result" } ], "source": [ "notes.index" ] }, { "cell_type": "code", "execution_count": 78, "metadata": { "collapsed": true }, "outputs": [], "source": [ "notes = notes.T" ] }, { "cell_type": "code", "execution_count": 79, "metadata": { "collapsed": false }, "outputs": [], "source": [ "notes = notes.drop('av_arrondi', axis=1)\n", "#notes = notes.drop('num_sujet', axis=1)" ] }, { "cell_type": "code", "execution_count": 80, "metadata": { "collapsed": false }, "outputs": [], "source": [ "barem = notes[:1]\n", "notes = notes[1:]\n", "#notes" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Supression des notes inutiles " ] }, { "cell_type": "code", "execution_count": 81, "metadata": { "collapsed": false }, "outputs": [], "source": [ "notes = notes[notes[ds_name].notnull()]\n", "notes = notes[notes[ds_name] != 0]" ] }, { "cell_type": "code", "execution_count": 82, "metadata": { "collapsed": false }, "outputs": [], "source": [ "notes = notes.astype(float)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Traitement des notes" ] }, { "cell_type": "code", "execution_count": 83, "metadata": { "collapsed": false, "scrolled": true }, "outputs": [ { "data": { "text/plain": [ "Index(['DST_04', 'Exercice 1', 'QCM', '1.1', '1.2', 'Exercice 2', '2.A.1',\n", " '2.A.2', '2.A.3.a', '2.A.3.b', '2.A.3.c', '2.B.1', '2.B.2',\n", " 'Exercice 3', '3.A.1', '3.A.2', '3.B.1', '3.B.2', '3.B.3', 'Exercice 4',\n", " '4.A.1', '4.A.1.a', '4.A.1.b', '4.B.1', '4.B.2', '4.B.3'],\n", " dtype='object')" ] }, "execution_count": 83, "metadata": {}, "output_type": "execute_result" } ], "source": [ "notes.T.index" ] }, { "cell_type": "code", "execution_count": 84, "metadata": { "collapsed": false }, "outputs": [], "source": [ "list_exo = [\"Exercice 1\", \"Exercice 2\", \"Exercice 3\", \"Exercice 4\"]" ] }, { "cell_type": "code", "execution_count": 85, "metadata": { "collapsed": false }, "outputs": [], "source": [ "notes[list_exo] = notes[list_exo].applymap(lambda x:round(x,2))\n", "#notes[list_exo]" ] }, { "cell_type": "code", "execution_count": 86, "metadata": { "collapsed": false, "scrolled": true }, "outputs": [ { "data": { "text/plain": [ "['1.1',\n", " '1.2',\n", " '2.A.1',\n", " '2.A.2',\n", " '2.A.3.a',\n", " '2.A.3.b',\n", " '2.A.3.c',\n", " '2.B.1',\n", " '2.B.2',\n", " '3.A.1',\n", " '3.A.2',\n", " '3.B.1',\n", " '3.B.2',\n", " '3.B.3',\n", " '4.A.1',\n", " '4.A.1.a',\n", " '4.A.1.b',\n", " '4.B.1',\n", " '4.B.2',\n", " '4.B.3']" ] }, "execution_count": 86, "metadata": {}, "output_type": "execute_result" } ], "source": [ "item_avec_note = list_exo + [ds_name, \"QCM\"]\n", "sous_exo = [i for i in notes.T.index if i not in item_avec_note]\n", "sous_exo" ] }, { "cell_type": "code", "execution_count": 87, "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": 88, "metadata": { "collapsed": false }, "outputs": [], "source": [ "notes[item_avec_note] = notes[item_avec_note].fillna(\".\")\n", "#notes" ] }, { "cell_type": "code", "execution_count": 89, "metadata": { "collapsed": true }, "outputs": [], "source": [ "eleves = notes.copy()\n", "eleves[sous_exo] = notes[sous_exo].applymap(toRepVal)" ] }, { "cell_type": "code", "execution_count": 90, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "26" ] }, "execution_count": 90, "metadata": {}, "output_type": "execute_result" } ], "source": [ "len(notes.T.index)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Preparation du fichier .tex" ] }, { "cell_type": "code", "execution_count": 91, "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 = eleves, barem = barem, ds_name = ds_name, latex_info = latex_info, nbr_questions = len(barem.T)))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Un peu de statistiques" ] }, { "cell_type": "code", "execution_count": 92, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "count 20.000000\n", "mean 11.425000\n", "std 4.733072\n", "min 3.000000\n", "25% 8.500000\n", "50% 10.750000\n", "75% 15.125000\n", "max 20.000000\n", "Name: DST_04, dtype: float64" ] }, "execution_count": 92, "metadata": {}, "output_type": "execute_result" } ], "source": [ "notes[ds_name].describe()" ] }, { "cell_type": "code", "execution_count": 34, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 34, "metadata": {}, "output_type": "execute_result" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXUAAAEACAYAAABMEua6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGblJREFUeJzt3X+wXGd93/H3B8tgPKbITqYyWOpcpphMTAmSaY3GtPU1\nhRmjyQj+YCb2NOMAM6AJVXBISdOmtOG//qBpjIkMmtpGJhnwMA5x7Yw8mARfBiaNcLGuKltyYw+o\nkWCQMxHyQEQbHH37x55r1qu99zxHOrvne8/5vGbuaJ/dZ3c/9znP/d7d7+5eKSIwM7N+eEnXAczM\nrD0u6mZmPeKibmbWIy7qZmY94qJuZtYjLupmZj1SVNQlXSTpoKSHVrn8DklPSzokaVu7Ec3MrFTp\nI/XbgCPAOW9ql7QDeG1EXA18APhUe/HMzKyJ2qIuaTOwA7gL0JQpO4F7ASLiALBR0qY2Q5qZWZmS\nR+q/A/w6cHaVy68Cjo+NTwCbLzCXmZmdhzWLuqSfB56NiINMf5T+wtSJsf/2gJlZBzbUXH49sLPq\nm18C/B1Jn42IW8fmfAfYMjbeXJ33IpJc6M3MzkNErPWg+pzJRV/ADcBDU87fAeyvTm8H/myV60fp\nfc3rC/hY1xnWQ6aV4wdR8zXfY5xxrZxp/WbKmqvpz1XdI/VzfgcASNpV3dPeiNgvaYekZ4C/Bt7b\n8Da7tNB1gCkWug6wjix0HWCKha4DTLHQdYApFroOsIqFrgNcqOKiHhFfBb5and47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9BfBx5v8s6wUTtbLRXp9bUZd0GXA/cFv1W6gzkn4eeDYiDpLg\nUXplA3AtcGdEXMvonURdtBReIOlyRo8SFhg9u7pM0j/vMtM0MXq1P0sLDQBJ/xb4m4j4XMc5LgV+\nE/it8bM7ijNuA3B5RGxn9ODqCx3nAfgg8KsR8feADwP3dBGiqpV/wKhW/mD8spK9PpeiLuliRiF/\nPyIemMd91rge2Cnp28DngbdK+mzHmU4wejT1WDW+n1GR79LbgG9HxF9FxPPAFxmtXQYnJV0JIOlV\nwLMd53mBpPcwau1l+AX49xn9Uj5U7ffNwDcl/d1OU432+xcBqj1/VtJPdRuJWyPiD6vT9zP621dz\nNVYrf2+sVjba6/N494uAu4EjEXH7rO+vRET8ZkRsiYjXMHrh7ysRcWvHmb4HHJf0uuqstwFPdhgJ\nRi+qbZf08uo4vo3RC8sZPAisfPLvl4AMDxaQdBOjR57vjIj/23WeiDgcEZsi4jXVfj8BXBsRXf8S\nfAB4K0C1518aEX/VbSS+K+mG6vRbGb3QPTdr1Mpmez0iZvoF/GNGfetl4GD1ddOs77dBvhuAB7vO\nUWV5I/AYcIjRo5hXJsj0MUYv2Bxm9CLNxR1k+Dyjnv7fMPrjce8FrgD+mNEP3iPAxgS53gc8zeiX\n4cpev7OjTP9vZa0mLv8WcEXXmYCLgd+r9tU3gcUEe+otjD5Fv8zob5Fsm3OmqbWy6V73h4/MzHrE\n/52dmVmPuKibmfWIi7qZWY+4qJuZ9YiLuplZj7iom5n1iIu6mVmPuKibmfXI/wdWgSw61UfO6wAA\nAABJRU5ErkJggg==\n", "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "notes_seules = notes[ds_name]\n", "notes_seules.hist(bins = (notes_seules.max() - notes_seules.min())*2)" ] }, { "cell_type": "code", "execution_count": 35, "metadata": { "collapsed": false }, "outputs": [], "source": [ "notes_questions = notes[sous_exo]\n", "notes_analysis = notes_questions.describe()" ] }, { "cell_type": "code", "execution_count": 36, "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", "
1.11.22.A.12.A.22.A.3.a2.A.3.b2.A.3.c2.B.12.B.23.A.13.A.23.B.13.B.23.B.34.A.14.A.1.a4.A.1.b4.B.14.B.24.B.3
countNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN
\n", "
" ], "text/plain": [ " 1.1 1.2 2.A.1 2.A.2 2.A.3.a 2.A.3.b 2.A.3.c 2.B.1 2.B.2 3.A.1 \\\n", "count NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN \n", "\n", " 3.A.2 3.B.1 3.B.2 3.B.3 4.A.1 4.A.1.a 4.A.1.b 4.B.1 4.B.2 \\\n", "count NaN NaN NaN NaN NaN NaN NaN NaN NaN \n", "\n", " 4.B.3 \n", "count NaN " ] }, "execution_count": 36, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# J'aimerai récupérer le nom des questions qui ont été le moins répondus\n", "notes_analysis[:1][notes_analysis[:1] == 25]" ] }, { "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 }