Create a data folder for all static files
This commit is contained in:
parent
069691cca1
commit
fd91de812d
8 changed files with 10 additions and 10 deletions
|
|
@ -30,7 +30,7 @@
|
|||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"2018-09-03 15:32:42 CEST\n",
|
||||
"2018-09-03 16:10:26 CEST\n",
|
||||
"\n",
|
||||
"CPython 3.6.5\n",
|
||||
"IPython 6.5.0\n",
|
||||
|
|
@ -174,13 +174,13 @@
|
|||
"}\n",
|
||||
"\n",
|
||||
"try:\n",
|
||||
" df = pd.read_excel(\"data_raw.xls\", **kwargs)\n",
|
||||
" df = pd.read_excel(\"data/data_raw.xls\", **kwargs)\n",
|
||||
"except FileNotFoundError:\n",
|
||||
" df = pd.read_excel(\n",
|
||||
" \"https://www.amstat.org/publications/jse/v19n3/decock/AmesHousing.xls\", **kwargs\n",
|
||||
" )\n",
|
||||
" # Cache the obtained file.\n",
|
||||
" df.to_excel(\"data_raw.xls\")"
|
||||
" df.to_excel(\"data/data_raw.xls\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -3085,7 +3085,7 @@
|
|||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"df.to_csv(\"data_clean.csv\")"
|
||||
"df.to_csv(\"data/data_clean.csv\")"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue