no commit message

parent 98189366
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 4, "execution_count": 25,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -30,11 +30,12 @@ ...@@ -30,11 +30,12 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 5, "execution_count": 26,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"data_url = \"./incidence-PAY-3.csv\"" "data_url = 'https://www.sentiweb.fr/datasets/incidence-PAY-3.csv'\n",
"data_file = \"./incidence-PAY-3.csv\""
] ]
}, },
{ {
...@@ -61,9 +62,16 @@ ...@@ -61,9 +62,16 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 6, "execution_count": 27,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Offline data available.\n"
]
},
{ {
"data": { "data": {
"text/html": [ "text/html": [
...@@ -1026,12 +1034,20 @@ ...@@ -1026,12 +1034,20 @@
"[1978 rows x 10 columns]" "[1978 rows x 10 columns]"
] ]
}, },
"execution_count": 6, "execution_count": 27,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
], ],
"source": [ "source": [
"import os\n",
"from urllib import request\n",
"if not os.path.exists(data_file):\n",
" print('Offline data not available: attempt to retrieve database online')\n",
" request.urlretrieve(data_url, data_file)\n",
"else:\n",
" print('Offline data available.')\n",
"\n",
"raw_data = pd.read_csv(data_url, skiprows=1)\n", "raw_data = pd.read_csv(data_url, skiprows=1)\n",
"raw_data" "raw_data"
] ]
...@@ -1045,7 +1061,7 @@ ...@@ -1045,7 +1061,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 7, "execution_count": 28,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -1107,7 +1123,7 @@ ...@@ -1107,7 +1123,7 @@
"1741 FR France " "1741 FR France "
] ]
}, },
"execution_count": 7, "execution_count": 28,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
...@@ -1125,7 +1141,7 @@ ...@@ -1125,7 +1141,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 8, "execution_count": 29,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -2090,7 +2106,7 @@ ...@@ -2090,7 +2106,7 @@
"[1977 rows x 10 columns]" "[1977 rows x 10 columns]"
] ]
}, },
"execution_count": 8, "execution_count": 29,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
...@@ -2119,7 +2135,7 @@ ...@@ -2119,7 +2135,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 9, "execution_count": 30,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -2148,7 +2164,7 @@ ...@@ -2148,7 +2164,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 10, "execution_count": 31,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -2172,7 +2188,7 @@ ...@@ -2172,7 +2188,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 11, "execution_count": 32,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -2200,16 +2216,16 @@ ...@@ -2200,16 +2216,16 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 12, "execution_count": 33,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb098234a20>" "<matplotlib.axes._subplots.AxesSubplot at 0x7fb095f17470>"
] ]
}, },
"execution_count": 12, "execution_count": 33,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
}, },
...@@ -2239,16 +2255,16 @@ ...@@ -2239,16 +2255,16 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 13, "execution_count": 34,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb09608a898>" "<matplotlib.axes._subplots.AxesSubplot at 0x7fb095944c88>"
] ]
}, },
"execution_count": 13, "execution_count": 34,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
}, },
...@@ -2297,7 +2313,7 @@ ...@@ -2297,7 +2313,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 14, "execution_count": 35,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -2317,7 +2333,7 @@ ...@@ -2317,7 +2333,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 15, "execution_count": 36,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -2341,16 +2357,16 @@ ...@@ -2341,16 +2357,16 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 16, "execution_count": 37,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb09608a828>" "<matplotlib.axes._subplots.AxesSubplot at 0x7fb0958cb5c0>"
] ]
}, },
"execution_count": 16, "execution_count": 37,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
}, },
...@@ -2380,7 +2396,7 @@ ...@@ -2380,7 +2396,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 17, "execution_count": 38,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -2425,7 +2441,7 @@ ...@@ -2425,7 +2441,7 @@
"dtype: int64" "dtype: int64"
] ]
}, },
"execution_count": 17, "execution_count": 38,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
...@@ -2444,16 +2460,16 @@ ...@@ -2444,16 +2460,16 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 18, "execution_count": 39,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb095ff4a90>" "<matplotlib.axes._subplots.AxesSubplot at 0x7fb095892a90>"
] ]
}, },
"execution_count": 18, "execution_count": 39,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
}, },
...@@ -2477,9 +2493,7 @@ ...@@ -2477,9 +2493,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,
"metadata": { "metadata": {},
"collapsed": true
},
"outputs": [], "outputs": [],
"source": [] "source": []
} }
......
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