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
d0e6f90fc91537e71d96befd9f7f0f02
mooc-rr
Commits
fa9d5930
Commit
fa9d5930
authored
Jan 03, 2025
by
d0e6f90fc91537e71d96befd9f7f0f02
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first cells of exo2
parent
cc79ef41
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
3 deletions
+61
-3
exercice.ipynb
module3/exo2/exercice.ipynb
+61
-3
No files found.
module3/exo2/exercice.ipynb
View file @
fa9d5930
{
"cells": [],
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Analyse sur l'incidence de la varicelle"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"import isoweek"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Phase 1 : chargement des données\n",
"On télécharge d'[ici](https://www.sentiweb.fr/france/fr/?page=table).\n",
"J'ai choisi de ne prendre que sentinelle (sans IQVIA), au niveau national, et de renommer ce \"inc-7-PAY.csv\" en \"varicelle.csv\"."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"url = 'https://www.sentiweb.fr/datasets/all/inc-7-PAY.csv'"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"try:\n",
" raw_data = pd.read_csv('./incidence_gripale.csv',index=True)\n",
"except:\n",
" raw_data = pd.read_csv(data_url, skiprows=1)\n",
" raw_data.to_csv('./incidence_gripale.csv')\n",
"raw_data.head()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
...
...
@@ -16,10 +75,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.
3
"
"version": "3.6.
4
"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
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