Commit Graph

14 Commits

Author SHA1 Message Date
Jerome Lovy
9b7ab19c56 Import urllib.request instead of urllib
As of January 25, 2021, in some environments, such as Colab (Python 3.6.9),
the following import statement
    import urllib
is not the right one for using urllib.request.

Indeed, calls to urllib.request functions then yield the following error:
    AttributeError: module 'urllib' has no attribute 'request'

One must import urllib.request instead.

See also https://stackoverflow.com/q/22278993
2021-01-25 11:55:32 +01:00
Aurélien Geron
2f7ab70295 Update notebooks to latest nbformat 2020-04-06 19:13:12 +12:00
Aurélien Geron
4a4aa2185e Fix typo on import urllib 2019-11-08 10:09:51 +08:00
Dave
8b7e47d6ef urllib called, but never imported
added import statement for urllib package, used in the downloading data section
2019-11-07 21:17:22 +00:00
Aurélien Geron
a55720e9e4 Make notebooks 1 to 9 runnable in Colab without changes 2019-11-05 22:26:52 +08:00
Aurélien Geron
f8f2b9e4bb Add (USD) after GDP per capita 2019-07-10 17:08:12 +02:00
Aurélien Geron
1a6bb0b199 Create image directory and check for sklearn >= 0.20 2019-01-21 18:42:31 +08:00
Aurélien Geron
6b8dff91d0 Update all notebooks assuming we are all in the future now: sklearn 0.20+, python 3.5+, TF 2.0 preview 2019-01-18 23:08:37 +08:00
Aurélien Geron
d2518a679b Drop Python 2 (woohoo!) and import matplotlib as mpl 2019-01-16 23:42:00 +08:00
Aurélien Geron
b54ee1b608 Update notebooks 1 to 8 to latest library versions (in particular Scikit-Learn 0.20) 2018-12-21 10:18:31 +08:00
Aurélien Geron
94914db82e Make the code example 1-1 easier to read, and create a better prepare_country_stats() function 2018-01-15 17:25:36 +01:00
vivek-v-rao
4e016769a6 removed quotes around "True"
the inplace argument should be boolean, not string
2017-06-27 21:30:57 -04:00
Aurélien Geron
1bc60fe315 Make notebook code match book examples more closely in chapter 1 2017-06-01 09:57:58 +02:00
Aurélien Geron
d7d6c121e3 Add notebooks for chapters 5 to 14 2016-09-27 23:31:21 +02:00