diff --git a/module3/exo1/influenza-like-illness-analysis.ipynb b/module3/exo1/influenza-like-illness-analysis.ipynb index 87092fc69cd90ff457ea56284b789cb0de199a41..ea2d69e88a9b5c2d61e100295b57d50360aec532 100644 --- a/module3/exo1/influenza-like-illness-analysis.ipynb +++ b/module3/exo1/influenza-like-illness-analysis.ipynb @@ -67,7 +67,21 @@ "metadata": {}, "outputs": [], "source": [ - "raw_data = pd.read_csv(data_url, skiprows=1)\n", + "data_file = \"syndrome-grippal.csv\"\n", + "\n", + "import os\n", + "import urllib.request\n", + "if not os.path.exists(data_file):\n", + " urllib.request.urlretrieve(data_url, data_file)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "raw_data = pd.read_csv(data_file, skiprows=1)\n", "raw_data" ] }, @@ -346,7 +360,10 @@ "collapsed": true }, "outputs": [], - "source": [] + "source": [ + "sorted_data['inc'] = pd.to_numeric(sorted_data['inc'], errors='coerce')\n", + "sorted_data['inc'].plot()" + ] } ], "metadata": { @@ -365,7 +382,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.1" + "version": "3.6.4" } }, "nbformat": 4,