no commit message

parent 407ccb7d
...@@ -67,7 +67,21 @@ ...@@ -67,7 +67,21 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"raw_data = pd.read_csv(data_url, skiprows=1)\n", "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" "raw_data"
] ]
}, },
...@@ -346,7 +360,10 @@ ...@@ -346,7 +360,10 @@
"collapsed": true "collapsed": true
}, },
"outputs": [], "outputs": [],
"source": [] "source": [
"sorted_data['inc'] = pd.to_numeric(sorted_data['inc'], errors='coerce')\n",
"sorted_data['inc'].plot()"
]
} }
], ],
"metadata": { "metadata": {
...@@ -365,7 +382,7 @@ ...@@ -365,7 +382,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.6.1" "version": "3.6.4"
} }
}, },
"nbformat": 4, "nbformat": 4,
......
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