From ec2ccde596af495e68e17e33f0a8926752fa709f Mon Sep 17 00:00:00 2001 From: 0db2f0554d3b3bbdf0f34a0c1240bdef <0db2f0554d3b3bbdf0f34a0c1240bdef@app-learninglab.inria.fr> Date: Tue, 9 Jun 2020 13:43:08 +0000 Subject: [PATCH] version avec data stokees en local --- module3/exo1/analyse-syndrome-grippal.ipynb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/module3/exo1/analyse-syndrome-grippal.ipynb b/module3/exo1/analyse-syndrome-grippal.ipynb index 1688494..27ecaf9 100644 --- a/module3/exo1/analyse-syndrome-grippal.ipynb +++ b/module3/exo1/analyse-syndrome-grippal.ipynb @@ -1031,13 +1031,13 @@ ], "source": [ "data_url = \"https://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n", - "fileName = \"syndrome-grippal.csv\"\n", + "data_file = \"syndrome-grippal.csv\"\n", "\n", - "os.path.isfile(fileName)\n", - "if os.path.isfile(fileName) == 0:\n", - " urllib.request.urlretrieve(data_url, fileName)\n", + "os.path.isfile(data_file)\n", + "if os.path.isfile(data_file) == 0:\n", + " urllib.request.urlretrieve(data_url, data_file)\n", "\n", - "raw_data = pd.read_csv(fileName, skiprows=1)\n", + "raw_data = pd.read_csv(data_file, skiprows=1)\n", "raw_data" ] }, @@ -2214,7 +2214,7 @@ { "data": { "text/plain": [ - "" + "" ] }, "execution_count": 8, @@ -2253,7 +2253,7 @@ { "data": { "text/plain": [ - "" + "" ] }, "execution_count": 9, @@ -2357,7 +2357,7 @@ { "data": { "text/plain": [ - "" + "" ] }, "execution_count": 12, @@ -2458,7 +2458,7 @@ { "data": { "text/plain": [ - "" + "" ] }, "execution_count": 14, -- 2.18.1