236 lines
6.3 KiB
Plaintext
236 lines
6.3 KiB
Plaintext
{
|
|
"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": [
|
|
"<IPython.core.display.Markdown object>"
|
|
]
|
|
},
|
|
"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": [
|
|
"<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>niveau</th>\n",
|
|
" <th>student</th>\n",
|
|
" <th>score</th>\n",
|
|
" </tr>\n",
|
|
" </thead>\n",
|
|
" <tbody>\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>ABDOU Asmahane</td>\n",
|
|
" <td>2</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>ABDOU Asmahane</td>\n",
|
|
" <td>3</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>ABDOU Asmahane</td>\n",
|
|
" <td>2</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>ABDOU Asmahane</td>\n",
|
|
" <td>2</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>ABDOU Asmahane</td>\n",
|
|
" <td>2</td>\n",
|
|
" </tr>\n",
|
|
" </tbody>\n",
|
|
"</table>\n",
|
|
"</div>"
|
|
],
|
|
"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
|
|
}
|