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
451defe1a1074031578ff629b9291801
mooc-rr
Commits
8e443173
Commit
8e443173
authored
Dec 17, 2020
by
451defe1a1074031578ff629b9291801
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Début du code jusqu'à l'écriture des données localement
parent
bdf23e1c
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1662 additions
and
25 deletions
+1662
-25
Varicelle.ipynb
module3/exo2/Varicelle.ipynb
+94
-0
exercice.ipynb
module3/exo2/exercice.ipynb
+0
-25
incidence-PAY-7.csv
module3/exo2/incidence-PAY-7.csv
+1568
-0
No files found.
module3/exo2/Varicelle.ipynb
0 → 100644
View file @
8e443173
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
" %matplotlib inline\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"import isoweek"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-7.csv\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Voici l'explication des colonnes donnée [sur le site d'origine](http://www.sentiweb.fr/france/fr/?page=json&file=csv-schema-v1&type=csv)\n",
"\n",
"\n",
"|Name\t|Type\t|Description\n",
"|--- | --- | --:\n",
"|week PK\t|integer\t\t|ISO8601 Yearweek number as numeric (year*100 + week nubmer)\n",
"|geo_insee PK\t|string\t\t|Identifier of the geographic area, from INSEE https://www.insee.fr\n",
"|geo_name\t|string\t\t|Geographic label of the area, corresponding to INSEE code. This label is not an id and is only provided for human reading\n",
"|indicator PK\t|integer\t|\tUnique identifier of the indicator, see metadata document https://www.sentiweb.fr/meta.json\n",
"|inc\t|integer\t\t|Estimated incidence value for the time step, in the geographic level\n",
"|inc_low\t|integer\t\t|Lower bound of the estimated incidence 95% Confidence Interval\n",
"|inc_up\t|integer\t\t|Upper bound of the estimated incidence 95% Confidence Interval\n",
"|inc100\t|integer\t\t|Estimated rate incidence per 100,000 inhabitants\n",
"|inc100_low\t|integer\t|\tLower bound of the estimated incidence 95% Confidence Interval\n",
"|inc100_up\t|integer\t|\tUpper bound of the estimated rate incidence 95% Confidence Interval\n",
"\n",
"Missing value : -"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Le code ci-dessous est exécuté **une seule fois** afin de créer *localement* le fichier de données."
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"raw_data = pd.read_csv(data_url, skiprows=1)\n",
"raw_data\n",
"raw_data.to_csv('incidence-PAY-7.csv', header = True)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
module3/exo2/exercice.ipynb
deleted
100644 → 0
View file @
bdf23e1c
{
"cells": [],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
module3/exo2/incidence-PAY-7.csv
0 → 100644
View file @
8e443173
This diff is collapsed.
Click to expand it.
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