Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
4951622f9f4ae8518bb995e4f0a0ce05
mooc-rr
Commits
e3e26cc3
Commit
e3e26cc3
authored
Oct 19, 2025
by
4951622f9f4ae8518bb995e4f0a0ce05
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout du journal de bord
parent
e8d4c9bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
exercice.ipynb
module2/exo2/exercice.ipynb
+26
-1
No files found.
module2/exo2/exercice.ipynb
View file @
e3e26cc3
...
...
@@ -108,7 +108,32 @@
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"\n",
"# Création d’un mini journal de bord\n",
"data = {\n",
" \"Jour\": [\"Lundi\", \"Mardi\", \"Mercredi\", \"Jeudi\", \"Vendredi\"],\n",
" \"Heures_étude\": [2, 3.5, 4, 2.5, 3],\n",
" \"Thème\": [\"Python\", \"Jupyter\", \"Statistiques\", \"Graphiques\", \"Journal\"]\n",
"}\n",
"\n",
"df = pd.DataFrame(data)\n",
"\n",
"# Afficher le tableau\n",
"display(df)\n",
"\n",
"# Calcul de la moyenne d’heures d’étude\n",
"print(\"Moyenne des heures d’étude :\", round(df[\"Heures_étude\"].mean(), 2))\n",
"\n",
"# Affichage graphique\n",
"plt.plot(df[\"Jour\"], df[\"Heures_étude\"], marker='o', color='blue')\n",
"plt.title(\"Temps d’étude par jour\")\n",
"plt.xlabel(\"Jour\")\n",
"plt.ylabel(\"Heures\")\n",
"plt.show()"
]
}
],
"metadata": {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment