240320V3

parent dfec9252
......@@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 35,
"metadata": {},
"outputs": [],
"source": [
......@@ -28,13 +28,34 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 36,
"metadata": {},
"outputs": [],
"source": [
"data_url = \"https://www.sentiweb.fr/datasets/incidence-PAY-3.csv\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Pour nous protéger contre une éventuelle disparition ou modification du serveur du Réseau Sentinelles, nous faisons une copie locale de ce jeux de données que nous préservons avec notre analyse. Il est inutile et même risquée de télécharger les données à chaque exécution, car dans le cas d'une panne nous pourrions remplacer nos données par un fichier défectueux. Pour cette raison, nous téléchargeons les données seulement si la copie locale n'existe pas."
]
},
{
"cell_type": "code",
"execution_count": 37,
"metadata": {},
"outputs": [],
"source": [
"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": "markdown",
"metadata": {},
......@@ -57,30 +78,9 @@
"La première ligne du fichier CSV est un commentaire, que nous ignorons en précisant `skiprows=1`."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Pour nous protéger contre une éventuelle disparition ou modification du serveur du Réseau Sentinelles, nous faisons une copie locale de ce jeux de données que nous préservons avec notre analyse. Il est inutile et même risquée de télécharger les données à chaque exécution, car dans le cas d'une panne nous pourrions remplacer nos données par un fichier défectueux. Pour cette raison, nous téléchargeons les données seulement si la copie locale n'existe pas."
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [],
"source": [
"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": 20,
"execution_count": 38,
"metadata": {},
"outputs": [
{
......@@ -1045,7 +1045,7 @@
"[1846 rows x 10 columns]"
]
},
"execution_count": 20,
"execution_count": 38,
"metadata": {},
"output_type": "execute_result"
}
......@@ -1064,7 +1064,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 39,
"metadata": {},
"outputs": [
{
......@@ -1126,7 +1126,7 @@
"1609 FR France "
]
},
"execution_count": 21,
"execution_count": 39,
"metadata": {},
"output_type": "execute_result"
}
......@@ -1144,7 +1144,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 40,
"metadata": {},
"outputs": [
{
......@@ -2109,7 +2109,7 @@
"[1845 rows x 10 columns]"
]
},
"execution_count": 22,
"execution_count": 40,
"metadata": {},
"output_type": "execute_result"
}
......@@ -2139,7 +2139,7 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 41,
"metadata": {},
"outputs": [],
"source": [
......@@ -2169,7 +2169,7 @@
},
{
"cell_type": "code",
"execution_count": 24,
"execution_count": 42,
"metadata": {},
"outputs": [],
"source": [
......@@ -2194,7 +2194,7 @@
},
{
"cell_type": "code",
"execution_count": 25,
"execution_count": 43,
"metadata": {},
"outputs": [
{
......@@ -2222,16 +2222,16 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": 44,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f15b20c2128>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f15b1e5ad68>"
]
},
"execution_count": 26,
"execution_count": 44,
"metadata": {},
"output_type": "execute_result"
},
......@@ -2261,16 +2261,16 @@
},
{
"cell_type": "code",
"execution_count": 27,
"execution_count": 45,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f15b229d0f0>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f15b1bb3978>"
]
},
"execution_count": 27,
"execution_count": 45,
"metadata": {},
"output_type": "execute_result"
},
......@@ -2321,7 +2321,7 @@
},
{
"cell_type": "code",
"execution_count": 28,
"execution_count": 46,
"metadata": {},
"outputs": [],
"source": [
......@@ -2341,7 +2341,7 @@
},
{
"cell_type": "code",
"execution_count": 29,
"execution_count": 47,
"metadata": {},
"outputs": [],
"source": [
......@@ -2365,16 +2365,16 @@
},
{
"cell_type": "code",
"execution_count": 30,
"execution_count": 48,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f15b2122048>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f15b210ae10>"
]
},
"execution_count": 30,
"execution_count": 48,
"metadata": {},
"output_type": "execute_result"
},
......@@ -2404,7 +2404,7 @@
},
{
"cell_type": "code",
"execution_count": 31,
"execution_count": 49,
"metadata": {},
"outputs": [
{
......@@ -2447,7 +2447,7 @@
"dtype: int64"
]
},
"execution_count": 31,
"execution_count": 49,
"metadata": {},
"output_type": "execute_result"
}
......@@ -2466,16 +2466,16 @@
},
{
"cell_type": "code",
"execution_count": 32,
"execution_count": 50,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f15b21a0f98>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f15b2137da0>"
]
},
"execution_count": 32,
"execution_count": 50,
"metadata": {},
"output_type": "execute_result"
},
......
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