{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from IPython.display import Markdown as md\n", "from IPython.display import DisplayHandle\n", "import pandas as pd\n", "from pathlib import Path\n", "from datetime import datetime\n", "from recopytex.csv_extraction import flat_clear_csv" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "tags": [ "parameters" ] }, "outputs": [], "source": [ "tribe = \"308\"\n", "assessment = \"DM1\"\n", "date = \"15/09/16\"\n", "csv_file = Path(f\"../sheets/{tribe}/160915_{assessment}.csv\")" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/markdown": [ "# DM1 (15/09/16) pour 308" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "if date is None:\n", " display(md(f\"# {assessment} pour {tribe}\"))\n", "else:\n", " display(md(f\"# {assessment} ({date}) pour {tribe}\"))" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "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", "
trimestrenomdateexercicequestioncompetencedomainecommentairebaremeniveaustudentscore
01DM115/09/1611.1CalPrio1.01ABDOU Asmahane2
11DM115/09/1611.2CalPrio1.01ABDOU Asmahane3
21DM115/09/1611.3CalPrio1.01ABDOU Asmahane2
31DM115/09/1611.4CalPrio1.01ABDOU Asmahane2
41DM115/09/1611.5CalPrio1.01ABDOU Asmahane2
\n", "
" ], "text/plain": [ " trimestre nom date exercice question competence domaine commentaire \\\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", "\n", " bareme niveau student score \n", "0 1.0 1 ABDOU Asmahane 2 \n", "1 1.0 1 ABDOU Asmahane 3 \n", "2 1.0 1 ABDOU Asmahane 2 \n", "3 1.0 1 ABDOU Asmahane 2 \n", "4 1.0 1 ABDOU Asmahane 2 " ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "stack_scores = pd.read_csv(csv_file)\n", "scores = flat_clear_csv(stack_scores)\n", "scores.head()" ] }, { "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", "version": "3.7.4" } }, "nbformat": 4, "nbformat_minor": 2 }