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.
This commit is contained in:
Ajmal Khan
2020-08-26 07:40:19 -05:00
committed by GitHub
parent 1e81324573
commit 59b9115ccb

View File

@@ -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",