Minor fixes to scikit learn notebook
"source": [
"nfs_mount_path = '/nfs_share'\n",
"\n",
- "import os\n",
+ "import os, shutil\n",
"iris_dir = os.path.join(nfs_mount_path, 'iris')\n",
+ "shutil.rmtree(iris_dir, ignore_errors=True)\n",
"os.makedirs(iris_dir, exist_ok=True)"
],
"outputs": [],
"cell_type": "code",
"execution_count": null,
"source": [
- "import shutil\n",
- "\n",
"shutil.copyfile('iris.csv', os.path.join(iris_dir, 'iris.csv'))"
],
"outputs": [],
