no commit message

parent 98189366
......@@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 25,
"metadata": {},
"outputs": [],
"source": [
......@@ -30,11 +30,12 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 26,
"metadata": {},
"outputs": [],
"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 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 27,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Offline data available.\n"
]
},
{
"data": {
"text/html": [
......@@ -1026,12 +1034,20 @@
"[1978 rows x 10 columns]"
]
},
"execution_count": 6,
"execution_count": 27,
"metadata": {},
"output_type": "execute_result"
}
],
"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"
]
......@@ -1045,7 +1061,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 28,
"metadata": {},
"outputs": [
{
......@@ -1107,7 +1123,7 @@
"1741 FR France "
]
},
"execution_count": 7,
"execution_count": 28,
"metadata": {},
"output_type": "execute_result"
}
......@@ -1125,7 +1141,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 29,
"metadata": {},
"outputs": [
{
......@@ -2090,7 +2106,7 @@
"[1977 rows x 10 columns]"
]
},
"execution_count": 8,
"execution_count": 29,
"metadata": {},
"output_type": "execute_result"
}
......@@ -2119,7 +2135,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 30,
"metadata": {},
"outputs": [],
"source": [
......@@ -2148,7 +2164,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 31,
"metadata": {},
"outputs": [],
"source": [
......@@ -2172,7 +2188,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 32,
"metadata": {},
"outputs": [
{
......@@ -2200,16 +2216,16 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 33,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb098234a20>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb095f17470>"
]
},
"execution_count": 12,
"execution_count": 33,
"metadata": {},
"output_type": "execute_result"
},
......@@ -2239,16 +2255,16 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 34,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb09608a898>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb095944c88>"
]
},
"execution_count": 13,
"execution_count": 34,
"metadata": {},
"output_type": "execute_result"
},
......@@ -2297,7 +2313,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 35,
"metadata": {},
"outputs": [],
"source": [
......@@ -2317,7 +2333,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 36,
"metadata": {},
"outputs": [],
"source": [
......@@ -2341,16 +2357,16 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 37,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb09608a828>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb0958cb5c0>"
]
},
"execution_count": 16,
"execution_count": 37,
"metadata": {},
"output_type": "execute_result"
},
......@@ -2380,7 +2396,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 38,
"metadata": {},
"outputs": [
{
......@@ -2425,7 +2441,7 @@
"dtype: int64"
]
},
"execution_count": 17,
"execution_count": 38,
"metadata": {},
"output_type": "execute_result"
}
......@@ -2444,16 +2460,16 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 39,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb095ff4a90>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb095892a90>"
]
},
"execution_count": 18,
"execution_count": 39,
"metadata": {},
"output_type": "execute_result"
},
......@@ -2477,9 +2493,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"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