no commit message

parent 1faef3e4
This diff is collapsed.
......@@ -9,10 +9,8 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
......@@ -30,13 +28,31 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Local data file not found. Downloading...\n",
"Download complete.\n"
]
}
],
"source": [
"data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\""
"import os\n",
"import urllib.request\n",
"\n",
"data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n",
"local_filename = \"incidence-PAY-3.csv\"\n",
"\n",
"if not os.path.exists(local_filename):\n",
" print(\"Local data file not found. Downloading...\")\n",
" urllib.request.urlretrieve(data_url, local_filename)\n",
" print(\"Download complete.\")\n",
"\n",
"raw_data = pd.read_csv(local_filename, skiprows=1)"
]
},
{
......@@ -61,30 +77,6 @@
"The first line of the CSV file is a comment, which we ignore with `skip=1`."
]
},
{
"cell_type": "code",
"execution_count": null,
"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": null,
"metadata": {},
"outputs": [],
"source": [
"raw_data = pd.read_csv(data_file, skiprows=1)\n",
"raw_data"
]
},
{
"cell_type": "markdown",
"metadata": {},
......
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