Premier pas sur le sujet

parent 0f0683d5
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Analyse de l'incidence de la varicelle"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"import isoweek\n",
"import os\n",
"import urllib.request # utile pour créer fichier directement à partir de l'URL"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Les données de l'incidence du syndrome grippal sont disponibles du site Web du Réseau Sentinelles. Nous les récupérons sous forme d'un fichier en format CSV"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"data_url = \"https://www.sentiweb.fr/datasets/incidence-PAY-7.csv\"\n",
"data_file = \"incidence-varicelle.csv\"\n",
"\n",
"os.path.isfile(data_file)\n",
"if os.path.isfile(data_file) == 0:\n",
" urllib.request.urlretrieve(data_url, data_file)\n",
"\n",
"raw_data = pd.read_csv(data_file, skiprows=1)\n",
"raw_data"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
{
"cells": [],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
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