affichageMessage

parent 103c7108
......@@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 12,
"metadata": {},
"outputs": [],
"source": [
......@@ -28,18 +28,25 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 13,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Fichier local trouvé, pas de téléchargement nécessaire.\n"
]
}
],
"source": [
"local_file = \"donnees_syndrome_grippal.csv\"\n",
"import os\n",
"import urllib.request\n",
"data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n",
"local_file = \"donnees_syndrome_grippal.csv\"\n",
"if not os.path.exists(local_file):\n",
" print(\"Téléchargement des données depuis l’URL...\")\n",
" urllib.request.urlretrieve(data_url, local_file)\n",
"else:\n",
" raw_data = pd.read_csv(local_file, skiprows=1)\n",
" print(\"Fichier local trouvé, pas de téléchargement nécessaire.\")\n",
"\n"
]
},
......@@ -67,7 +74,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 14,
"metadata": {},
"outputs": [
{
......@@ -1032,7 +1039,7 @@
"[2116 rows x 10 columns]"
]
},
"execution_count": 11,
"execution_count": 14,
"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