From 59b9115ccb2f6cd6d3efa33a0f9f6d5c5211f940 Mon Sep 17 00:00:00 2001 From: Ajmal Khan Date: Wed, 26 Aug 2020 07:40:19 -0500 Subject: [PATCH] Modify import of urllib to urllib.request The import as-is will fail as changes have been made to urllib. This fix will allow the rest of the code to work as-is. --- 01_the_machine_learning_landscape.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01_the_machine_learning_landscape.ipynb b/01_the_machine_learning_landscape.ipynb index 24f8aaa..a1f92db 100644 --- a/01_the_machine_learning_landscape.ipynb +++ b/01_the_machine_learning_landscape.ipynb @@ -124,7 +124,7 @@ "outputs": [], "source": [ "# Download the data\n", - "import urllib\n", + "import urllib.request\n", "DOWNLOAD_ROOT = \"https://raw.githubusercontent.com/ageron/handson-ml2/master/\"\n", "os.makedirs(datapath, exist_ok=True)\n", "for filename in (\"oecd_bli_2015.csv\", \"gdp_per_capita.csv\"):\n",