{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", "import pandas as pd\n", "import isoweek" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"" ] }, { "cell_type": "code", "execution_count": 3, "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": 4, "metadata": {}, "outputs": [], "source": [ "raw_data = pd.read_csv(data_file, skiprows=1)" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | week | \n", "indicator | \n", "inc | \n", "inc_low | \n", "inc_up | \n", "inc100 | \n", "inc100_low | \n", "inc100_up | \n", "geo_insee | \n", "geo_name | \n", "
---|---|---|---|---|---|---|---|---|---|---|
1821 | \n", "198919 | \n", "3 | \n", "- | \n", "NaN | \n", "NaN | \n", "- | \n", "NaN | \n", "NaN | \n", "FR | \n", "France | \n", "