no commit message

parent 9acc8026
...@@ -2475,23 +2475,82 @@ ...@@ -2475,23 +2475,82 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 8, "execution_count": 16,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th># @source=\"réseau Sentinelles</th>\n",
" <th>INSERM</th>\n",
" <th>Sorbonne Université</th>\n",
" <th>http://www.sentiweb.fr\"</th>\n",
" <th>@meta={\"period\":[198444</th>\n",
" <th>202309]</th>\n",
" <th>geo:[\"PAY\"</th>\n",
" <th>1]</th>\n",
" <th>geo_ref:\"insee\"</th>\n",
" <th>indicator:\"3\"</th>\n",
" <th>type:\"all\"</th>\n",
" <th>conf_int:true</th>\n",
" <th>compact:false}</th>\n",
" <th>@date=2023-03-12T17:29:51+01:00</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
"Empty DataFrame\n",
"Columns: [# @source=\"réseau Sentinelles, INSERM, Sorbonne Université, http://www.sentiweb.fr\", @meta={\"period\":[198444, 202309], geo:[\"PAY\", 1], geo_ref:\"insee\", indicator:\"3\", type:\"all\", conf_int:true, compact:false}, @date=2023-03-12T17:29:51+01:00]\n",
"Index: []"
]
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [ "source": [
"%matplotlib inline\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"import isoweek\n",
"import os\n",
"\n", "\n",
"\n", "\n",
"local_file = \"incidence-PAY-3.csv\"\n", "data_file = \"incidence-PAY-3.csv\"\n",
"\n", "\n",
"if not os.path.exists(local_file):\n", "if not os.path.isfile(data_file):\n",
" data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n", " data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n",
" raw_data = pd.read_csv(data_url, skiprows=1)\n", " raw_data = pd.read_csv(data_url, encoding='iso-8859-1', skiprows=1)\n",
" raw_data.to_csv(local_file, index=False)\n", " raw_data.to_csv(data_file, index=False)\n",
"else:\n", "else:\n",
" raw_data = pd.read_csv(local_file, encoding='ISO-8859-1')\n", " raw_data = pd.read_csv(data_file, encoding='iso-8859-1')\n",
"\n", "\n",
"data = raw_data.dropna().copy()\n", "data = raw_data.dropna().copy()\n",
"\n" "\n",
"data"
] ]
}, },
{ {
......
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