2409 lines
3.6 MiB
Plaintext
2409 lines
3.6 MiB
Plaintext
|
{
|
||
|
"cells": [
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 1,
|
||
|
"id": "25b1d95f",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:48.967822Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:48.967308Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:50.089738Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:50.090120Z"
|
||
|
},
|
||
|
"extensions": {
|
||
|
"jupyter_dashboards": {
|
||
|
"version": 1,
|
||
|
"views": {
|
||
|
"grid_default": {},
|
||
|
"report_default": {
|
||
|
"hidden": true
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 1.172629,
|
||
|
"end_time": "2023-03-28T08:45:50.090262",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:48.917633",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"slideshow": {
|
||
|
"slide_type": "skip"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/html": [
|
||
|
" <script type=\"text/javascript\">\n",
|
||
|
" window.PlotlyConfig = {MathJaxConfig: 'local'};\n",
|
||
|
" if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: \"STIX-Web\"}});}\n",
|
||
|
" if (typeof require !== 'undefined') {\n",
|
||
|
" require.undef(\"plotly\");\n",
|
||
|
" define('plotly', function(require, exports, module) {\n",
|
||
|
" /**\n",
|
||
|
"* plotly.js v2.18.2\n",
|
||
|
"* Copyright 2012-2023, Plotly, Inc.\n",
|
||
|
"* All rights reserved.\n",
|
||
|
"* Licensed under the MIT license\n",
|
||
|
"*/\n",
|
||
|
"/*! For license information please see plotly.min.js.LICENSE.txt */\n",
|
||
|
"!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define([],e):\"object\"==typeof exports?exports.Plotly=e():t.Plotly=e()}(self,(function(){return function(){var t={98847:function(t,e,r){\"use strict\";var n=r(71828),i={\"X,X div\":'direction:ltr;font-family:\"Open Sans\",verdana,arial,sans-serif;margin:0;padding:0;',\"X input,X button\":'font-family:\"Open Sans\",verdana,arial,sans-serif;',\"X input:focus,X button:focus\":\"outline:none;\",\"X a\":\"text-decoration:none;\",\"X a:hover\":\"text-decoration:none;\",\"X .crisp\":\"shape-rendering:crispEdges;\",\"X .user-select-none\":\"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;\",\"X svg\":\"overflow:hidden;\",\"X svg a\":\"fill:#447adb;\",\"X svg a:hover\":\"fill:#3c6dc5;\",\"X .main-svg\":\"position:absolute;top:0;left:0;pointer-events:none;\",\"X .main-svg .draglayer\":\"pointer-events:all;\",\"X .cursor-default\":\"cursor:default;\",\"X .cursor-pointer\":\"cursor:pointer;\",\"X .cursor-crosshair\":\"cursor:crosshair;\",\"X .cursor-move\":\"cursor:move;\",\"X .cursor-col-resize\":\"cursor:col-resize;\",\"X .cursor-row-resize\":\"cursor:row-resize;\",\"X .cursor-ns-resize\":\"cursor:ns-resize;\",\"X .cursor-ew-resize\":\"cursor:ew-resize;\",\"X .cursor-sw-resize\":\"cursor:sw-resize;\",\"X .cursor-s-resize\":\"cursor:s-resize;\",\"X .cursor-se-resize\":\"cursor:se-resize;\",\"X .cursor-w-resize\":\"cursor:w-resize;\",\"X .cursor-e-resize\":\"cursor:e-resize;\",\"X .cursor-nw-resize\":\"cursor:nw-resize;\",\"X .cursor-n-resize\":\"cursor:n-resize;\",\"X .cursor-ne-resize\":\"cursor:ne-resize;\",\"X .cursor-grab\":\"cursor:-webkit-grab;cursor:grab;\",\"X .modebar\":\"position:absolute;top:2px;right:2px;\",\"X .ease-bg\":\"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;\",\"X .modebar--hover>:not(.watermark)\":\"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;\",\"X:hover .modebar--hover .modebar-group\":\"opacity:1;\",\"X .modebar-group\":\"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;\",\"X .modebar-btn\":\"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;\",\"X .modebar-btn svg\":\"position:relative;top:2px;\",\"X .modebar.vertical\":\"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;\",\"X .modebar.vertical svg\":\"top:-1px;\",\"X .modebar.vertical .modebar-group\":\"display:block;float:none;padding-left:0px;padding-bottom:8px;\",\"X .modebar.vertical .modebar-group .modebar-btn\":\"display:block;text-align:center;\",\"X [data-title]:before,X [data-title]:after\":\"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;\",\"X [data-title]:hover:before,X [data-title]:hover:after\":\"display:block;opacity:1;\",\"X [data-title]:before\":'content:\"\";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',\"X [data-title]:after\":\"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;\",\"X .vertical [data-title]:before,X .vertical [data-title]:after\":\"top:0%;right:200%;\",\"X .vertical [data-title]:before\":\"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;\",Y:'font-family:\"Open
|
||
|
" });\n",
|
||
|
" require(['plotly'], function(Plotly) {\n",
|
||
|
" window._Plotly = Plotly;\n",
|
||
|
" });\n",
|
||
|
" }\n",
|
||
|
" </script>\n",
|
||
|
" "
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"from IPython.display import Markdown as md\n",
|
||
|
"from IPython.display import display, HTML\n",
|
||
|
"import pandas as pd\n",
|
||
|
"import numpy as np\n",
|
||
|
"import ipywidgets as widgets\n",
|
||
|
"from pathlib import Path\n",
|
||
|
"from datetime import datetime\n",
|
||
|
"from recopytex import flat_df_students, pp_q_scores\n",
|
||
|
"from datetime import datetime\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"import chart_studio.plotly as py\n",
|
||
|
"import plotly.graph_objects as go\n",
|
||
|
"import plotly.figure_factory as ff\n",
|
||
|
"\n",
|
||
|
"from plotly.offline import iplot, init_notebook_mode\n",
|
||
|
"init_notebook_mode()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 2,
|
||
|
"id": "3a865047",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:50.301876Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:50.300587Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:50.303792Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:50.303242Z"
|
||
|
},
|
||
|
"extensions": {
|
||
|
"jupyter_dashboards": {
|
||
|
"version": 1,
|
||
|
"views": {
|
||
|
"grid_default": {},
|
||
|
"report_default": {
|
||
|
"hidden": true
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.119278,
|
||
|
"end_time": "2023-03-28T08:45:50.303910",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:50.184632",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"slideshow": {
|
||
|
"slide_type": "skip"
|
||
|
},
|
||
|
"tags": [
|
||
|
"parameters"
|
||
|
]
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"tribe = \"ES\"\n",
|
||
|
"assessment = \"ds2\"\n",
|
||
|
"date = \"14/10/19\"\n",
|
||
|
"csv_file = Path(f\"../{tribe}/191014_{assessment}.csv\")"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 3,
|
||
|
"id": "77ffd15f",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:50.483585Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:50.483172Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:50.485037Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:50.484649Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.091772,
|
||
|
"end_time": "2023-03-28T08:45:50.485115",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:50.393343",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": [
|
||
|
"injected-parameters"
|
||
|
]
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"# Parameters\n",
|
||
|
"tribe = \"2gt1\"\n",
|
||
|
"assessment = \"Dm2\"\n",
|
||
|
"date = \"27/03/23\"\n",
|
||
|
"csv_file = \"/home/lafrite/Cours/2022-2023/Notes/2gt1/230327_DM2.csv\"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 4,
|
||
|
"id": "63832c37",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:50.668808Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:50.668381Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:50.670125Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:50.670479Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.095997,
|
||
|
"end_time": "2023-03-28T08:45:50.670584",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:50.574587",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/Cours/2022-2023/Notes/2gt1/230327_DM2\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"date = datetime.strptime(date, \"%d/%m/%y\")\n",
|
||
|
"output_path = Path(csv_file[:-4])\n",
|
||
|
"print(output_path)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 5,
|
||
|
"id": "2a41f502",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:50.857651Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:50.857133Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:50.859535Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:50.859145Z"
|
||
|
},
|
||
|
"extensions": {
|
||
|
"jupyter_dashboards": {
|
||
|
"version": 1,
|
||
|
"views": {
|
||
|
"grid_default": {},
|
||
|
"report_default": {
|
||
|
"hidden": false
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.099408,
|
||
|
"end_time": "2023-03-28T08:45:50.859612",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:50.760204",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"slideshow": {
|
||
|
"slide_type": "slide"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"text/markdown": [
|
||
|
"# Dm2 (23/03/27) pour 2gt1"
|
||
|
],
|
||
|
"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:%y/%m/%d}) pour {tribe}\"))"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 6,
|
||
|
"id": "3149dc30",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:51.041006Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:51.040449Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:51.242789Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:51.242388Z"
|
||
|
},
|
||
|
"extensions": {
|
||
|
"jupyter_dashboards": {
|
||
|
"version": 1,
|
||
|
"views": {
|
||
|
"grid_default": {},
|
||
|
"report_default": {
|
||
|
"hidden": true
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.294325,
|
||
|
"end_time": "2023-03-28T08:45:51.242869",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:50.948544",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"slideshow": {
|
||
|
"slide_type": "skip"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"stack_scores = pd.read_csv(csv_file, encoding=\"UTF8\")\n",
|
||
|
"#comments = stack_scores.iloc[0]\n",
|
||
|
"#stack_scores.drop([0], inplace=True)\n",
|
||
|
"scores = flat_df_students(stack_scores).dropna(subset=[\"Score\"])\n",
|
||
|
"scores = pp_q_scores(scores)\n",
|
||
|
"#scores.head()\n",
|
||
|
"#comments.drop()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 7,
|
||
|
"id": "48cb4a36",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:51.428847Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:51.428454Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:51.429768Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:51.430177Z"
|
||
|
},
|
||
|
"extensions": {
|
||
|
"jupyter_dashboards": {
|
||
|
"version": 1,
|
||
|
"views": {
|
||
|
"grid_default": {},
|
||
|
"report_default": {
|
||
|
"hidden": true
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.098461,
|
||
|
"end_time": "2023-03-28T08:45:51.430315",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:51.331854",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"slideshow": {
|
||
|
"slide_type": "skip"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"exercises_scores = scores.groupby([\"Exercice\", \"Eleve\"]).agg({\"Note\": \"sum\", \"Bareme\": \"sum\"})"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 8,
|
||
|
"id": "15025186",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:51.615938Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:51.615465Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:51.621440Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:51.621789Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.098771,
|
||
|
"end_time": "2023-03-28T08:45:51.621891",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:51.523120",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"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>Exercice</th>\n",
|
||
|
" <th>Eleve</th>\n",
|
||
|
" <th></th>\n",
|
||
|
" <th></th>\n",
|
||
|
" </tr>\n",
|
||
|
" </thead>\n",
|
||
|
" <tbody>\n",
|
||
|
" <tr>\n",
|
||
|
" <th rowspan=\"5\" valign=\"top\">Exercice 1</th>\n",
|
||
|
" <th>ACHOUR Ilyes</th>\n",
|
||
|
" <td>1.0</td>\n",
|
||
|
" <td>3.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>BELARBI Islem</th>\n",
|
||
|
" <td>3.0</td>\n",
|
||
|
" <td>3.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>BEN ELALLID Hajar</th>\n",
|
||
|
" <td>3.0</td>\n",
|
||
|
" <td>3.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>BISWAS Lina</th>\n",
|
||
|
" <td>2.0</td>\n",
|
||
|
" <td>3.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>BOULAABA Rayan</th>\n",
|
||
|
" <td>2.0</td>\n",
|
||
|
" <td>3.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" </tbody>\n",
|
||
|
"</table>\n",
|
||
|
"</div>"
|
||
|
],
|
||
|
"text/plain": [
|
||
|
" Note Bareme\n",
|
||
|
"Exercice Eleve \n",
|
||
|
"Exercice 1 ACHOUR Ilyes 1.0 3.0\n",
|
||
|
" BELARBI Islem 3.0 3.0\n",
|
||
|
" BEN ELALLID Hajar 3.0 3.0\n",
|
||
|
" BISWAS Lina 2.0 3.0\n",
|
||
|
" BOULAABA Rayan 2.0 3.0"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 8,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"exercises_scores.head()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 9,
|
||
|
"id": "71c672c0",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:51.805622Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:51.805061Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:51.806511Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:51.806843Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.095181,
|
||
|
"end_time": "2023-03-28T08:45:51.806935",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:51.711754",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"assessment_scores = scores.groupby([\"Eleve\"]).agg({\"Note\": \"sum\", \"Bareme\": \"sum\"})"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 29,
|
||
|
"id": "d8a02878",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:51.988341Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:51.987926Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:51.989914Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:51.989527Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.094654,
|
||
|
"end_time": "2023-03-28T08:45:51.989991",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:51.895337",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"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>Eleve</th>\n",
|
||
|
" <th></th>\n",
|
||
|
" <th></th>\n",
|
||
|
" </tr>\n",
|
||
|
" </thead>\n",
|
||
|
" <tbody>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>ACHOUR Ilyes</th>\n",
|
||
|
" <td>6.50</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>BELARBI Islem</th>\n",
|
||
|
" <td>12.67</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>BEN ELALLID Hajar</th>\n",
|
||
|
" <td>9.16</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>BISWAS Lina</th>\n",
|
||
|
" <td>10.00</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>BOULAABA Rayan</th>\n",
|
||
|
" <td>10.33</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>BREZUN Ines</th>\n",
|
||
|
" <td>10.83</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>BUGNON Enzo</th>\n",
|
||
|
" <td>10.50</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>CALLEWAERT Idaline</th>\n",
|
||
|
" <td>10.67</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>CATTIN Clément</th>\n",
|
||
|
" <td>12.00</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>DECOSTER Clément</th>\n",
|
||
|
" <td>13.50</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>DEHIMAT Launy</th>\n",
|
||
|
" <td>11.00</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>DUPONT Jessica</th>\n",
|
||
|
" <td>12.67</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>GASAN Jéssica</th>\n",
|
||
|
" <td>12.50</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>GEORGET Raphaël</th>\n",
|
||
|
" <td>9.84</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>HABBAZ Hajar</th>\n",
|
||
|
" <td>11.34</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>JACQUEMIER Samuel</th>\n",
|
||
|
" <td>12.50</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>JACQUIER Juliette</th>\n",
|
||
|
" <td>9.83</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>JOVIC Atanase</th>\n",
|
||
|
" <td>7.17</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>KASSI Cheïma</th>\n",
|
||
|
" <td>10.17</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>KICHENASSAMY Sanjay</th>\n",
|
||
|
" <td>8.83</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>LE VEUZIT Adrien</th>\n",
|
||
|
" <td>11.84</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>MANJALI Hiba</th>\n",
|
||
|
" <td>13.67</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>NEIVA Hugo</th>\n",
|
||
|
" <td>11.17</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>OLLIET Gioia</th>\n",
|
||
|
" <td>4.33</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>PERNOT Gabin</th>\n",
|
||
|
" <td>13.84</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>RIZZI Elisa</th>\n",
|
||
|
" <td>13.67</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>SIBABA Moaad</th>\n",
|
||
|
" <td>9.67</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>SOUJOL Damien</th>\n",
|
||
|
" <td>11.34</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>THORAL Fanny</th>\n",
|
||
|
" <td>8.67</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>TOURRETTE Elise</th>\n",
|
||
|
" <td>11.33</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>TROPHARDY Eline</th>\n",
|
||
|
" <td>12.34</td>\n",
|
||
|
" <td>15.0</td>\n",
|
||
|
" </tr>\n",
|
||
|
" </tbody>\n",
|
||
|
"</table>\n",
|
||
|
"</div>"
|
||
|
],
|
||
|
"text/plain": [
|
||
|
" Note Bareme\n",
|
||
|
"Eleve \n",
|
||
|
"ACHOUR Ilyes 6.50 15.0\n",
|
||
|
"BELARBI Islem 12.67 15.0\n",
|
||
|
"BEN ELALLID Hajar 9.16 15.0\n",
|
||
|
"BISWAS Lina 10.00 15.0\n",
|
||
|
"BOULAABA Rayan 10.33 15.0\n",
|
||
|
"BREZUN Ines 10.83 15.0\n",
|
||
|
"BUGNON Enzo 10.50 15.0\n",
|
||
|
"CALLEWAERT Idaline 10.67 15.0\n",
|
||
|
"CATTIN Clément 12.00 15.0\n",
|
||
|
"DECOSTER Clément 13.50 15.0\n",
|
||
|
"DEHIMAT Launy 11.00 15.0\n",
|
||
|
"DUPONT Jessica 12.67 15.0\n",
|
||
|
"GASAN Jéssica 12.50 15.0\n",
|
||
|
"GEORGET Raphaël 9.84 15.0\n",
|
||
|
"HABBAZ Hajar 11.34 15.0\n",
|
||
|
"JACQUEMIER Samuel 12.50 15.0\n",
|
||
|
"JACQUIER Juliette 9.83 15.0\n",
|
||
|
"JOVIC Atanase 7.17 15.0\n",
|
||
|
"KASSI Cheïma 10.17 15.0\n",
|
||
|
"KICHENASSAMY Sanjay 8.83 15.0\n",
|
||
|
"LE VEUZIT Adrien 11.84 15.0\n",
|
||
|
"MANJALI Hiba 13.67 15.0\n",
|
||
|
"NEIVA Hugo 11.17 15.0\n",
|
||
|
"OLLIET Gioia 4.33 15.0\n",
|
||
|
"PERNOT Gabin 13.84 15.0\n",
|
||
|
"RIZZI Elisa 13.67 15.0\n",
|
||
|
"SIBABA Moaad 9.67 15.0\n",
|
||
|
"SOUJOL Damien 11.34 15.0\n",
|
||
|
"THORAL Fanny 8.67 15.0\n",
|
||
|
"TOURRETTE Elise 11.33 15.0\n",
|
||
|
"TROPHARDY Eline 12.34 15.0"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 29,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"assessment_scores"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 11,
|
||
|
"id": "b6717594",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:52.172953Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:52.172310Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:52.176593Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:52.176220Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.099297,
|
||
|
"end_time": "2023-03-28T08:45:52.176675",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:52.077378",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"domain_scores = scores.groupby([\"Eleve\", \"Domaine\"]).agg({\"Note\": \"sum\", \"Bareme\": \"sum\"})\n",
|
||
|
"domain_scores[\"Normalized\"] = domain_scores[\"Note\"] / domain_scores[\"Bareme\"]"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 12,
|
||
|
"id": "d87553e1",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:52.358809Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:52.358317Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:52.360017Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:52.359627Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.093298,
|
||
|
"end_time": "2023-03-28T08:45:52.360096",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:52.266798",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"#domain_scores"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 13,
|
||
|
"id": "61a49219",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:52.543843Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:52.541270Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:52.546640Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:52.547033Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.098711,
|
||
|
"end_time": "2023-03-28T08:45:52.547178",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:52.448467",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"competence_scores = scores.groupby([\"Eleve\", \"Competence\"]).agg({\"Note\": \"sum\", \"Bareme\": \"sum\"})\n",
|
||
|
"competence_scores[\"Normalized\"] = competence_scores[\"Note\"] / competence_scores[\"Bareme\"]"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 14,
|
||
|
"id": "7c8ad2c9",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:52.730956Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:52.730450Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:52.732573Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:52.732903Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.097023,
|
||
|
"end_time": "2023-03-28T08:45:52.732998",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:52.635975",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"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",
|
||
|
" <th>Normalized</th>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>Eleve</th>\n",
|
||
|
" <th>Competence</th>\n",
|
||
|
" <th></th>\n",
|
||
|
" <th></th>\n",
|
||
|
" <th></th>\n",
|
||
|
" </tr>\n",
|
||
|
" </thead>\n",
|
||
|
" <tbody>\n",
|
||
|
" <tr>\n",
|
||
|
" <th rowspan=\"2\" valign=\"top\">TOURRETTE Elise</th>\n",
|
||
|
" <th>Communiquer</th>\n",
|
||
|
" <td>0.33</td>\n",
|
||
|
" <td>1.0</td>\n",
|
||
|
" <td>0.33</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>Représenter</th>\n",
|
||
|
" <td>3.00</td>\n",
|
||
|
" <td>4.5</td>\n",
|
||
|
" <td>0.67</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th rowspan=\"3\" valign=\"top\">TROPHARDY Eline</th>\n",
|
||
|
" <th>Calculer</th>\n",
|
||
|
" <td>7.17</td>\n",
|
||
|
" <td>9.5</td>\n",
|
||
|
" <td>0.75</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>Communiquer</th>\n",
|
||
|
" <td>0.67</td>\n",
|
||
|
" <td>1.0</td>\n",
|
||
|
" <td>0.67</td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <th>Représenter</th>\n",
|
||
|
" <td>4.50</td>\n",
|
||
|
" <td>4.5</td>\n",
|
||
|
" <td>1.00</td>\n",
|
||
|
" </tr>\n",
|
||
|
" </tbody>\n",
|
||
|
"</table>\n",
|
||
|
"</div>"
|
||
|
],
|
||
|
"text/plain": [
|
||
|
" Note Bareme Normalized\n",
|
||
|
"Eleve Competence \n",
|
||
|
"TOURRETTE Elise Communiquer 0.33 1.0 0.33\n",
|
||
|
" Représenter 3.00 4.5 0.67\n",
|
||
|
"TROPHARDY Eline Calculer 7.17 9.5 0.75\n",
|
||
|
" Communiquer 0.67 1.0 0.67\n",
|
||
|
" Représenter 4.50 4.5 1.00"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 14,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"competence_scores.tail()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "3437315d",
|
||
|
"metadata": {
|
||
|
"papermill": {
|
||
|
"duration": 0.089034,
|
||
|
"end_time": "2023-03-28T08:45:52.909790",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:52.820756",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"source": [
|
||
|
"### Bilans personnalisés"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 15,
|
||
|
"id": "dd4fa512",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:53.098878Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:53.098309Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:53.130055Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:53.129562Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.124254,
|
||
|
"end_time": "2023-03-28T08:45:53.130165",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:53.005911",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"scrolled": true,
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"import pytex\n",
|
||
|
"#scores.head()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 16,
|
||
|
"id": "6a667215",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:53.403995Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:53.403533Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:53.405135Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:53.404814Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.182371,
|
||
|
"end_time": "2023-03-28T08:45:53.405211",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:53.222840",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"datas = {\n",
|
||
|
" \"assessment\": {\n",
|
||
|
" \"name\": assessment,\n",
|
||
|
" \"date\": date\n",
|
||
|
" },\n",
|
||
|
" #\"exercises\": scores[\"Exercice\"].unique(),\n",
|
||
|
" #\"questions\": scores[[\"Exercice\", 'Question', 'Competence', 'Domaine', 'Commentaire', 'Bareme', 'Est_nivele']],\n",
|
||
|
" \"eleves\": {}\n",
|
||
|
"}\n",
|
||
|
"for e in scores[\"Eleve\"].unique():\n",
|
||
|
" edatas = {\n",
|
||
|
" \"e\": e,\n",
|
||
|
" \"assessment\": assessment_scores.loc[e],\n",
|
||
|
" \"exercices\": exercises_scores.xs(e, level=\"Eleve\"), \"exercices\": exercises_scores.xs(e, level=\"Eleve\"),\n",
|
||
|
" \"domains\": domain_scores.xs(e, level=\"Eleve\"),\n",
|
||
|
" \"competences\": competence_scores.xs(e, level=\"Eleve\"),\n",
|
||
|
" \"exscores\": {}\n",
|
||
|
" }\n",
|
||
|
" for i, ex in edatas[\"exercices\"].iterrows():\n",
|
||
|
" edatas[\"exscores\"][i] = scores.loc[(scores.Exercice==i) & (scores.Eleve==e)]\n",
|
||
|
" datas[\"eleves\"][e] = edatas"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 17,
|
||
|
"id": "16b39fd6",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:53.587713Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:53.587280Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:53.588722Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:53.589031Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.095919,
|
||
|
"end_time": "2023-03-28T08:45:53.589126",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:53.493207",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"score_template = r\"\"\"\n",
|
||
|
"\\documentclass[a5paper,10pt]{article}\n",
|
||
|
"\\usepackage{fullpage}\n",
|
||
|
"\\usepackage{booktabs}\n",
|
||
|
"\\usepackage{longtable}\n",
|
||
|
"\\usepackage{tikz}\n",
|
||
|
"\\usepackage{multicol}\n",
|
||
|
"\n",
|
||
|
"\\usepackage{geometry}\n",
|
||
|
"\\geometry{left=10mm,right=10mm, top=10mm}\n",
|
||
|
"\n",
|
||
|
"\\renewcommand{\\arraystretch}{1}\n",
|
||
|
"\\setlength{\\columnseprule}{0pt}\n",
|
||
|
"\n",
|
||
|
"\\pagestyle{empty}\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"\\begin{document}\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
" \\section*{\\Var{assessment.name} \\hfill \\Var{e} \\hfill \\Var{sc.assessment.Note}/\\Var{sc.assessment.Bareme}}\n",
|
||
|
" %- for i,ex in sc.exercices.iterrows() \n",
|
||
|
" \\subsection*{\\Var{i}: \\hfill \\Var{ex.Note} / \\Var{ex.Bareme}}\n",
|
||
|
" \\begin{center}\n",
|
||
|
" \\Var{sc.exscores[i].to_latex(index=False, columns=[\"Question\", \"Domaine\", \"Commentaire\", \"Note\", \"Bareme\"])}\n",
|
||
|
" \\end{center}\n",
|
||
|
" %- endfor\n",
|
||
|
" \n",
|
||
|
" \\subsection*{Compétences}\n",
|
||
|
" \\begin{multicols}{2}\n",
|
||
|
" %- for i,dom in sc.competences.iterrows()\n",
|
||
|
" \\noindent\n",
|
||
|
" \\Var{i} \\hfill\n",
|
||
|
" \\begin{tikzpicture}[scale=0.7]\n",
|
||
|
" \\draw [](0,0) rectangle (3, 1);\n",
|
||
|
" \\draw [fill=black!20] (0, 0) rectangle (\\Var{dom.Normalized*3}, 1);\n",
|
||
|
" \\end{tikzpicture}\n",
|
||
|
" \\hfill\n",
|
||
|
" %\\Var{dom.Normalized}\n",
|
||
|
" \n",
|
||
|
" %- endfor\n",
|
||
|
" \\end{multicols}\n",
|
||
|
"\n",
|
||
|
"\\end{document}\n",
|
||
|
"\"\"\""
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 18,
|
||
|
"id": "e7d7716e",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:53.776471Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:53.776060Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:59.159833Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:59.158550Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 5.480242,
|
||
|
"end_time": "2023-03-28T08:45:59.159916",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:53.679674",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_ACHOUR Ilyes.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_BELARBI Islem.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_BEN ELALLID Hajar.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_BISWAS Lina.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_BOULAABA Rayan.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_BREZUN Ines.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_BUGNON Enzo.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_CALLEWAERT Idaline.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_CATTIN Clément.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_DECOSTER Clément.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_DEHIMAT Launy.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_DUPONT Jessica.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_GASAN Jéssica.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_GEORGET Raphaël.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_HABBAZ Hajar.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_JACQUEMIER Samuel.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_JACQUIER Juliette.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_JOVIC Atanase.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_KASSI Cheïma.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_KICHENASSAMY Sanjay.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_LE VEUZIT Adrien.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_MANJALI Hiba.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_NEIVA Hugo.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_OLLIET Gioia.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_PERNOT Gabin.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_RIZZI Elisa.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_SIBABA Moaad.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_SOUJOL Damien.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_THORAL Fanny.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_TOURRETTE Elise.tex\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n",
|
||
|
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
|
||
|
"\n",
|
||
|
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Wrote 230327_Dm2_TROPHARDY Eline.tex\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"tpl = pytex.texenv.from_string(score_template)\n",
|
||
|
"\n",
|
||
|
"for e,sc in datas['eleves'].items():\n",
|
||
|
" reportfilename = f\"{date:%y%m%d}_{assessment}_{e}.tex\"\n",
|
||
|
" with open(output_path / reportfilename, \"w\") as f:\n",
|
||
|
" f.write(tpl.render(sc=sc, e=e,**datas))\n",
|
||
|
" print(f\"Wrote {reportfilename}\")\n",
|
||
|
" pytex.pdflatex(reportfilename)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "dfaf5d3d",
|
||
|
"metadata": {
|
||
|
"papermill": {
|
||
|
"duration": 0.167429,
|
||
|
"end_time": "2023-03-28T08:45:59.493841",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:59.326412",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"source": [
|
||
|
"## Envoie des bilans par mail"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 22,
|
||
|
"id": "76384db8",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:45:59.832394Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:45:59.831991Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:45:59.833973Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:45:59.833607Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.17148,
|
||
|
"end_time": "2023-03-28T08:45:59.834045",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:45:59.662565",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Bian du devoir Dm2\n",
|
||
|
"Bonsoir,\n",
|
||
|
"En pièce jointe, vous trouverez un document détaillant la note du devoir. \n",
|
||
|
"\n",
|
||
|
"Votre note est indiquée sur 15 dans la pièce jointe mais elle sera sur 14 sur Pronote par rapport à la dernière question sur l'écart type.\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"B.Bertrand\n",
|
||
|
"\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"mailfrom = \"benjamin.bertrand@ac-lyon.fr\"\n",
|
||
|
"subject = f\"Bian du devoir {assessment}\"\n",
|
||
|
"message = \"\"\"Bonsoir,\n",
|
||
|
"En pièce jointe, vous trouverez un document détaillant la note du devoir. \n",
|
||
|
"\n",
|
||
|
"Votre note est indiquée sur 15 dans la pièce jointe mais elle sera sur 14 sur Pronote par rapport à la dernière question sur l'écart type.\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"B.Bertrand\n",
|
||
|
"\"\"\"\n",
|
||
|
"print(subject)\n",
|
||
|
"print(message)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 23,
|
||
|
"id": "71eb9a2b",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:46:00.175811Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:46:00.175403Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:46:00.178465Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:46:00.178767Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.17481,
|
||
|
"end_time": "2023-03-28T08:46:00.178855",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:46:00.004045",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"import smtplib\n",
|
||
|
"import os\n",
|
||
|
"import sys\n",
|
||
|
"from email.message import EmailMessage\n",
|
||
|
"import mimetypes\n",
|
||
|
"import time\n",
|
||
|
"import random"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 24,
|
||
|
"id": "f2834e6b",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:46:00.523847Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:46:00.523100Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:46:00.525176Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:46:00.524571Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.173507,
|
||
|
"end_time": "2023-03-28T08:46:00.525291",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:46:00.351784",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"def build_msg(subj, to_addr, from_addr, body, att):\n",
|
||
|
" msg = EmailMessage()\n",
|
||
|
" msg[\"Subject\"] = subj\n",
|
||
|
" msg[\"To\"] = to_addr\n",
|
||
|
" #msg[\"To\"] = \"lafrite26@gmail.com\"\n",
|
||
|
" msg[\"From\"] = from_addr\n",
|
||
|
" msg.set_content(body)\n",
|
||
|
"\n",
|
||
|
" if att != []:\n",
|
||
|
" ctype, encoding = mimetypes.guess_type(att)\n",
|
||
|
" if ctype is None or encoding is not None:\n",
|
||
|
" ctype = 'application/octet-stream'\n",
|
||
|
" maintype, subtype = ctype.split('/', 1)\n",
|
||
|
" with open(att, \"rb\") as f:\n",
|
||
|
" msg.add_attachment(f.read(),\n",
|
||
|
" maintype=maintype,\n",
|
||
|
" subtype=subtype,\n",
|
||
|
" filename=att.name)\n",
|
||
|
" return msg\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 25,
|
||
|
"id": "30311066",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:46:00.865283Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:46:00.864715Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:46:00.866535Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:46:00.866154Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.171878,
|
||
|
"end_time": "2023-03-28T08:46:00.866611",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:46:00.694733",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"send = 1\n",
|
||
|
"fake = 0"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 26,
|
||
|
"id": "d31598c3",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:46:01.215935Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:46:01.215541Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:46:01.216799Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:46:01.217082Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.179372,
|
||
|
"end_time": "2023-03-28T08:46:01.217172",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:46:01.037800",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"if send:\n",
|
||
|
" if fake:\n",
|
||
|
" server = smtplib.SMTP(\"localhost\", 8025)\n",
|
||
|
" server.ehlo()\n",
|
||
|
" else:\n",
|
||
|
" server = smtplib.SMTP(\"smtps.ac-lyon.fr\", 587)\n",
|
||
|
" server.ehlo()\n",
|
||
|
" server.starttls()\n",
|
||
|
" server.ehlo()\n",
|
||
|
" server.login(\"bbertrand\", os.popen(\"pass Prof/Lyon/bbertrand\").read()[:-1]) "
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 27,
|
||
|
"id": "ca5690d7",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:46:01.572966Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:46:01.572574Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:46:01.581196Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:46:01.580749Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.188186,
|
||
|
"end_time": "2023-03-28T08:46:01.581289",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:46:01.393103",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"try:\n",
|
||
|
" eleves_data = pd.read_csv(f\"../../{tribe}.csv\")\n",
|
||
|
"except FileNotFoundError:\n",
|
||
|
" try:\n",
|
||
|
" eleves_data = pd.read_csv(f\"../{tribe}.csv\")\n",
|
||
|
" except FileNotFoundError:\n",
|
||
|
" eleves_data = pd.read_csv(f\"{tribe}.csv\")\n",
|
||
|
"eleves_data.fillna(\"\", inplace=True)\n",
|
||
|
"#eleves_data"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 28,
|
||
|
"id": "b676f878",
|
||
|
"metadata": {
|
||
|
"execution": {
|
||
|
"iopub.execute_input": "2023-03-28T08:46:01.926005Z",
|
||
|
"iopub.status.busy": "2023-03-28T08:46:01.923232Z",
|
||
|
"iopub.status.idle": "2023-03-28T08:46:01.932738Z",
|
||
|
"shell.execute_reply": "2023-03-28T08:46:01.933072Z"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 0.181443,
|
||
|
"end_time": "2023-03-28T08:46:01.933174",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:46:01.751731",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"\tBilan envoyé à ACHOUR Ilyes\n",
|
||
|
"\tBilan envoyé à BELARBI Islem\n",
|
||
|
"\tBilan envoyé à BEN ELALLID Hajar\n",
|
||
|
"\tBilan envoyé à BISWAS Lina\n",
|
||
|
"\tBilan envoyé à BOULAABA Rayan\n",
|
||
|
"\tBilan envoyé à BREZUN Ines\n",
|
||
|
"\tBilan envoyé à BUGNON Enzo\n",
|
||
|
"\tBilan envoyé à CALLEWAERT Idaline\n",
|
||
|
"\tBilan envoyé à CATTIN Clément\n",
|
||
|
"Pas de rapport pour CHRISTMANN Nathan\n",
|
||
|
"\tBilan envoyé à DECOSTER Clément\n",
|
||
|
"\tBilan envoyé à DEHIMAT Launy\n",
|
||
|
"\tBilan envoyé à DUPONT Jessica\n",
|
||
|
"\tBilan envoyé à GASAN Jéssica\n",
|
||
|
"\tBilan envoyé à GEORGET Raphaël\n",
|
||
|
"\tBilan envoyé à HABBAZ Hajar\n",
|
||
|
"\tBilan envoyé à JACQUEMIER Samuel\n",
|
||
|
"\tBilan envoyé à JACQUIER Juliette\n",
|
||
|
"\tBilan envoyé à JOVIC Atanase\n",
|
||
|
"\tBilan envoyé à KASSI Cheïma\n",
|
||
|
"\tBilan envoyé à KICHENASSAMY Sanjay\n",
|
||
|
"\tBilan envoyé à LE VEUZIT Adrien\n",
|
||
|
"Pas de rapport pour LETIF Ilef\n",
|
||
|
"\tBilan envoyé à MANJALI Hiba\n",
|
||
|
"Pas de rapport pour MUTTONI Lou\n",
|
||
|
"\tBilan envoyé à NEIVA Hugo\n",
|
||
|
"\tBilan envoyé à OLLIET Gioia\n",
|
||
|
"\tBilan envoyé à PERNOT Gabin\n",
|
||
|
"\tBilan envoyé à RIZZI Elisa\n",
|
||
|
"Pas de rapport pour ROSTANT Emma\n",
|
||
|
"\tBilan envoyé à SIBABA Moaad\n",
|
||
|
"\tBilan envoyé à SOUJOL Damien\n",
|
||
|
"\tBilan envoyé à THORAL Fanny\n",
|
||
|
"\tBilan envoyé à TOURRETTE Elise\n",
|
||
|
"\tBilan envoyé à TROPHARDY Eline\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"for e in eleves_data.iterrows():\n",
|
||
|
" reportfilename = Path(f\"{date:%y%m%d}_{assessment}_{e[1]['Nom']}.pdf\")\n",
|
||
|
" try:\n",
|
||
|
" assert reportfilename.exists()\n",
|
||
|
" except:\n",
|
||
|
" print(f\"Pas de rapport pour {e[1]['Nom']}\")\n",
|
||
|
" else:\n",
|
||
|
" if e[1][\"mail\"] != \"\":\n",
|
||
|
" if send:\n",
|
||
|
" msg = build_msg(subject, e[1][\"mail\"], mailfrom, message, reportfilename)\n",
|
||
|
" server.send_message(msg)\n",
|
||
|
" print(f\"\\tBilan envoyé à {e[1]['Nom']}\")\n",
|
||
|
" else:\n",
|
||
|
" print(f\"Pas de mail pour {e[1]['Nom']}\")\n",
|
||
|
" "
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"id": "78e914c1",
|
||
|
"metadata": {
|
||
|
"papermill": {
|
||
|
"duration": 0.172912,
|
||
|
"end_time": "2023-03-28T08:46:02.276991",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:46:02.104079",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"id": "24ff9733",
|
||
|
"metadata": {
|
||
|
"papermill": {
|
||
|
"duration": 0.170245,
|
||
|
"end_time": "2023-03-28T08:46:02.615327",
|
||
|
"exception": false,
|
||
|
"start_time": "2023-03-28T08:46:02.445082",
|
||
|
"status": "completed"
|
||
|
},
|
||
|
"tags": []
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
}
|
||
|
],
|
||
|
"metadata": {
|
||
|
"celltoolbar": "Diaporama",
|
||
|
"extensions": {
|
||
|
"jupyter_dashboards": {
|
||
|
"activeView": "grid_default",
|
||
|
"version": 1,
|
||
|
"views": {
|
||
|
"grid_default": {
|
||
|
"cellMargin": 10,
|
||
|
"defaultCellHeight": 20,
|
||
|
"maxColumns": 12,
|
||
|
"name": "grid",
|
||
|
"type": "grid"
|
||
|
},
|
||
|
"report_default": {
|
||
|
"name": "report",
|
||
|
"type": "report"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"kernelspec": {
|
||
|
"display_name": "Python 3 (ipykernel)",
|
||
|
"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.10.10"
|
||
|
},
|
||
|
"papermill": {
|
||
|
"duration": 15.871637,
|
||
|
"end_time": "2023-03-28T08:46:03.196936",
|
||
|
"environment_variables": {},
|
||
|
"exception": null,
|
||
|
"input_path": "templates/tpl_evaluation.ipynb",
|
||
|
"output_path": "2gt1/230327_DM2/Dm2.ipynb",
|
||
|
"parameters": {
|
||
|
"assessment": "Dm2",
|
||
|
"csv_file": "/home/lafrite/Cours/2022-2023/Notes/2gt1/230327_DM2.csv",
|
||
|
"date": "27/03/23",
|
||
|
"tribe": "2gt1"
|
||
|
},
|
||
|
"start_time": "2023-03-28T08:45:47.325299",
|
||
|
"version": "1.2.1"
|
||
|
}
|
||
|
},
|
||
|
"nbformat": 4,
|
||
|
"nbformat_minor": 5
|
||
|
}
|