diff --git a/module3/exo1/analyse-syndrome-grippal.ipynb b/module3/exo1/analyse-syndrome-grippal.ipynb index fbbc4ece27ffcf7134943667ada6f6117d5040f1..e54396eb6893734dfbde84968870708f524c2535 100644 --- a/module3/exo1/analyse-syndrome-grippal.ipynb +++ b/module3/exo1/analyse-syndrome-grippal.ipynb @@ -89,7 +89,7 @@ " print(\"File '{}' exists\".format(filename))\n", "else:\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", " print(\"File '{}' downloaded on {}.\".format(filename, download_time))\n" ] diff --git a/module3/exo2/exercice.ipynb b/module3/exo2/exercice.ipynb index 0bbbe371b01e359e381e43239412d77bf53fb1fb..c7ef713f7b967c3f8aff77320daf9bb48e995fe9 100644 --- a/module3/exo2/exercice.ipynb +++ b/module3/exo2/exercice.ipynb @@ -1,5 +1,64 @@ { - "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": { "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 } -