Added further comments regarding the download/loading of the data.

parent 96ac39ae
......@@ -68,9 +68,16 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Loaging existing data\n"
]
},
{
"data": {
"text/html": [
......@@ -1095,15 +1102,17 @@
"[1845 rows x 11 columns]"
]
},
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"if os.path.exists(saving_file):\n",
" print(\"Loaging existing data\")\n",
" raw_data = pd.read_csv(saving_file, skiprows=1)\n",
"else:\n",
" print(\"Downloading data from url\")\n",
" raw_data = pd.read_csv(data_url, skiprows=1)\n",
" raw_data.to_csv(saving_file)\n",
"raw_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