correction of notebook - the downloading part should have been done via coding not manually

parent a4cad413
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 2, "execution_count": 1,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -28,13 +28,17 @@ ...@@ -28,13 +28,17 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 2,
"metadata": { "metadata": {},
"collapsed": true
},
"outputs": [], "outputs": [],
"source": [ "source": [
"# data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"" "data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\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)"
] ]
}, },
{ {
...@@ -1035,7 +1039,7 @@ ...@@ -1035,7 +1039,7 @@
], ],
"source": [ "source": [
"# raw_data = pd.read_csv(data_url, skiprows=1)\n", "# raw_data = pd.read_csv(data_url, skiprows=1)\n",
"raw_data = pd.read_csv(\"./incidence-PAY-3.csv\", skiprows=1) \n", "raw_data = pd.read_csv(data_file, skiprows=1) \n",
"raw_data" "raw_data"
] ]
}, },
...@@ -2212,7 +2216,7 @@ ...@@ -2212,7 +2216,7 @@
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fae2d6cd710>" "<matplotlib.axes._subplots.AxesSubplot at 0x7fd6b6485780>"
] ]
}, },
"execution_count": 9, "execution_count": 9,
...@@ -2251,7 +2255,7 @@ ...@@ -2251,7 +2255,7 @@
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fae2b497e10>" "<matplotlib.axes._subplots.AxesSubplot at 0x7fd6b4348940>"
] ]
}, },
"execution_count": 10, "execution_count": 10,
...@@ -2305,7 +2309,7 @@ ...@@ -2305,7 +2309,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 12, "execution_count": 11,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -2325,7 +2329,7 @@ ...@@ -2325,7 +2329,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 19, "execution_count": 12,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -2349,16 +2353,16 @@ ...@@ -2349,16 +2353,16 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 20, "execution_count": 13,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fae2b3a3d68>" "<matplotlib.axes._subplots.AxesSubplot at 0x7fd6b426c588>"
] ]
}, },
"execution_count": 20, "execution_count": 13,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
}, },
...@@ -2388,7 +2392,7 @@ ...@@ -2388,7 +2392,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 21, "execution_count": 14,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -2431,7 +2435,7 @@ ...@@ -2431,7 +2435,7 @@
"dtype: int64" "dtype: int64"
] ]
}, },
"execution_count": 21, "execution_count": 14,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
...@@ -2450,16 +2454,16 @@ ...@@ -2450,16 +2454,16 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 22, "execution_count": 15,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fae2b415978>" "<matplotlib.axes._subplots.AxesSubplot at 0x7fd6b4255160>"
] ]
}, },
"execution_count": 22, "execution_count": 15,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
}, },
......
This diff is collapsed.
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