update

parent 52c21997
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
" print(\"File '{}' exists\".format(filename))\n", " print(\"File '{}' exists\".format(filename))\n",
"else:\n", "else:\n",
" print(\"File '{}' does not exist, downloading...\".format(filename))\n", " print(\"File '{}' does not exist, downloading...\".format(filename))\n",
" urllib.request.urlretrieve(data_url, 'influenza_data.csv')\n", " urllib.request.urlretrieve(data_url, filename)\n",
" download_time = date.today()\n", " download_time = date.today()\n",
" print(\"File '{}' downloaded on {}.\".format(filename, download_time))\n" " print(\"File '{}' downloaded on {}.\".format(filename, download_time))\n"
] ]
......
{ {
"cells": [], "cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Incidence de la varicelle"
]
},
{
"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": "markdown",
"metadata": {},
"source": [
"Les données de l'incidence du syndrome de varicelle sont disponibles du site Web du [Réseau Sentinelles](http://www.sentiweb.fr/). Nous les récupérons sous forme d'un fichier en format CSV dont chaque ligne correspond à une semaine de la période demandée. Nous téléchargeons toujours le jeu de données complet, qui commence en 1984 et se termine avec une semaine récente."
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"data_url = 'https://www.sentiweb.fr/datasets/incidence-PAY-7.csv'"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"Voici l'explication des colonnes données [sur le site d'origine](https://ns.sentiweb.fr/incidence/csv-schema-v1.json):\n",
"\n",
"Schema\n",
"Name \tType \tLabel \tDescription\n",
"week PK \tinteger \t\tISO8601 Yearweek number as numeric (year*100 + week nubmer)\n",
"geo_insee PK \tstring \t\tIdentifier of the geographic area, from INSEE https://www.insee.fr\n",
"geo_name \tstring \t\tGeographic label of the area, corresponding to INSEE code. This label is not an id and is only provided for human reading\n",
"indicator PK \tinteger \t\tUnique identifier of the indicator, see metadata document https://www.sentiweb.fr/meta.json\n",
"inc \tinteger \t\tEstimated incidence value for the time step, in the geographic level\n",
"inc_low \tinteger \t\tLower bound of the estimated incidence 95% Confidence Interval\n",
"inc_up \tinteger \t\tUpper bound of the estimated incidence 95% Confidence Interval\n",
"inc100 \tinteger \t\tEstimated rate incidence per 100,000 inhabitants\n",
"inc100_low \tinteger \t\tLower bound of the estimated incidence 95% Confidence Interval\n",
"inc100_up \tinteger \t\tUpper bound of the estimated rate incidence 95% Confidence Interval\n",
"Missing value : -"
]
}
],
"metadata": { "metadata": {
"kernelspec": { "kernelspec": {
"display_name": "Python 3", "display_name": "Python 3",
...@@ -16,10 +75,9 @@ ...@@ -16,10 +75,9 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.6.3" "version": "3.6.4"
} }
}, },
"nbformat": 4, "nbformat": 4,
"nbformat_minor": 2 "nbformat_minor": 2
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment