Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date Submitted |
---|---|---|---|---|
Printed | Page 416 Example 16.2 |
"var width = ..." line is ended with , rather than ; and following line starting wiht height needs to be start with "var..." rather than just height. |
Corey Halverson | Jul 31, 2019 |
Page 286 bottom of page |
P.286 imports Seaborn as `sb` |
mbeveridge | Jun 11, 2019 | |
Other Digital Version | 181 Example 6.4 |
Kindle Version |
Siyuan Lu | Mar 17, 2019 |
Other Digital Version | 350 3rd paragraph |
On kindle the command line shows: |
Siyuan Lu | Mar 12, 2019 |
Printed | Page 257 Second code block |
The following proposed code block does not work: |
Anonymous | Mar 08, 2019 |
Printed | Page 253 Last paragraph |
"Running to_datetime on the date_of_birth field ..." should be corrected to read, "Running to_datetime on the date_of_death field ..." |
Anonymous | Mar 08, 2019 |
Printed | Page 156 Code block |
Proposed code fails, as "get_url" is not defined, nor will BeautifulSoup work on the proposed "data" argument; correct by changing "get_url" to "requests.get" and pass BeautifulSoup(data.content) (not "data") |
Anonymous | Mar 04, 2019 |
Printed | Page 153 Code block |
The 2016 record includes an unexpected endnote that causes the code provided to fail; this can be fixed by collecting only the first 4 characters of the selected text, e.g. year = int(row.select_one('td').text[0:4]) |
Anonymous | Mar 04, 2019 |
Printed | Page 142 Last paragraph |
Printed code fails as written; assumes prior "import pandas as pd" command (Pandas has not been introduced by page 141) |
Anonymous | Mar 04, 2019 |
Printed | Page 141 Example 5-2 |
This example does not work as printed (error: "cannot import name 'SignedJwtAssertionCredentials' from 'oauth2client.client' (/anaconda3/lib/python3.7/site-packages/oauth2client/client.py)"); the following code provides a working alternative in Python 3 ... from oauth2client.service_account import ServiceAccountCredentials ... scope = ['https://spreadsheets.google.com/feeds', 'https://www.googleapis.com/auth/drive'] ... credentials = ServiceAccountCredentials.from_json_keyfile_name('myProject.json', scope) |
Anonymous | Mar 04, 2019 |
Printed | Page 79 second code block |
The proposed code fails because Dataset no longer supports the *freeze* method; this functionality has been split off into the datafreeze package. Due to a naming conflict within the datafreeze module, equivalent code will fail when using the *freeze* function (import datafreeze ... freeze(winners, format='csv', filename='nobel_winners_ds.csv')). |
Anonymous | Mar 03, 2019 |
ePub | Page 607 Kindle sample,"location 607", don't know the actual page. Chapter 2, Interacting with the Code > Python After last line of last paragraph |
You said: |
Dave Lubertozzi | Mar 20, 2018 |
ePub | Page 459 Kindle sample, Chapter 1, don't know the actual page. First paragraph under Virtual Environments |
For readers who've already installed Anaconda with Python 3.x, the first command under Virtual Environments would be instead |
Dave Lubertozzi | Mar 19, 2018 |
Printed | Page 17 middle |
Apparently SimpleHTTPServer has been replaced by http.server in Python 3. |
Mike Sweeney | Mar 11, 2018 |
Printed | Page 211 Bottom of page |
"we grab row number two" is accurate but potentially confusing since it's zero based. |
Lee Trout | Feb 04, 2018 |
Printed | Page 315 code snippet |
spotted couple of minor errors in this excellent book! |
Oliver Harper | Jan 04, 2018 |
Printed | Page 20 Bullet list, 2nd entry |
The PYTHOPATH variable ... should read |
Anonymous | Nov 21, 2017 |
? chap 1, Anaconda section, python version info box |
Since the time of publication, the following package has become compatible with Python 3. I think the book's contents need to be updated or at least somehow reflect this. |
Anonymous | Oct 02, 2017 |