From 96e99098be3b5e62afc3bff0e7184ffc09ebd4a1 Mon Sep 17 00:00:00 2001 From: 8c2481a10dd33818b61b3592d19a3613 <8c2481a10dd33818b61b3592d19a3613@app-learninglab.inria.fr> Date: Mon, 11 May 2020 10:44:45 +0000 Subject: [PATCH] Initial commit : add environment initialization --- ...de de cas incidence de la varicelle..ipynb | 63 +++++++++++++++++++ module3/exo2/exercice.ipynb | 25 -------- 2 files changed, 63 insertions(+), 25 deletions(-) create mode 100644 module3/exo2/Etude de cas incidence de la varicelle..ipynb delete mode 100644 module3/exo2/exercice.ipynb diff --git a/module3/exo2/Etude de cas incidence de la varicelle..ipynb b/module3/exo2/Etude de cas incidence de la varicelle..ipynb new file mode 100644 index 0000000..104c23c --- /dev/null +++ b/module3/exo2/Etude de cas incidence de la varicelle..ipynb @@ -0,0 +1,63 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Incidence de la varicelle\n", + "## Récupération des données: \n", + "Initialisation de l'environnement de développement." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%matplotlib inline\n", + "import matplotlib.pyplot as plt\n", + "import pandas as pd\n", + "import isoweek\n", + "\n", + "#variables d'import des données :\n", + "data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n", + "data_local = \"incidence-PAY-3.csv\"\n", + "\n", + "import os\n", + "import urllib.request\n", + "#Test de présence des données : \n", + "if os.path.exists(data_local):\n", + " raw_data = pd.read_csv(data_local, skiprows=1)\n", + " print(\"Local File Selected\")\n", + "else :\n", + " urllib.request.urlretrieve(data_url, data_data)\n", + " raw_data = pd.read_csv(data_url, skiprows=1)\n", + "\n", + "#Contient les données local ou provenant de l'url ci-dessus.\n", + "raw_data" + ] + } + ], + "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 +} diff --git a/module3/exo2/exercice.ipynb b/module3/exo2/exercice.ipynb deleted file mode 100644 index 0bbbe37..0000000 --- a/module3/exo2/exercice.ipynb +++ /dev/null @@ -1,25 +0,0 @@ -{ - "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 -} - -- 2.18.1