Python for Finance

Errata for Python for Finance

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Other Digital Version
all pages
all locations

For the amazon kindle cloud reader version no images are being displayed which results in a camera icon warning across the pages. This is repeatable on chrome, safari, edge, and iexplorer, across both mac and windows versions of the cloud reader.

Note from the Author or Editor:
O'Reilly has evaluated our source mobi and can't reproduce the problem, so this is something unique to the Amazon Kindle Cloud Reader. We will ask them about it, but in the meantime, customers with similar problems in Amazon forums have recommended removing and re-downloading the content, as the problem may arise from how the content is loaded to someone's Kindle library.

Andrew  Dec 16, 2018 
Safari Books Online

In chapter 12 (Stochastics), immediately after the stochastic differential equation for the Merton jump diffusion model (immediately after "For completeness, here is an overview of the variables' and parameters' meaning: The variable t is labeled as "Constant riskless short rate". In fact, this should be the label for variable r - the variable t represents points in the time series of the underlying's evolution.

Thomas Murphy  Jun 06, 2020  Jul 31, 2020
Page 47-49
Botom of 47, top of 48

When creating a Docker image, the text refers to the "ubuntupython" tag but the example code below adds a tag called "basic". Given the "basic" tag is used going forward as well, the text should probably refer to "basic" instead of "ubuntupython". After creating the image (with ID 6c36b9117cd2), and subsequently getting a list of all the images, the IMAGE ID (f789dd230d6f) doesn't match the ID of the image that was just created above. The example does continue correctly by referring to 6c36b9117cd2 when removing the image on page 49.

Note from the Author or Editor:
Seems indeed to be an inconsistency in naming that needs to be corrected.

Kdeebee  Feb 11, 2019  May 31, 2019
Page 78
Table 3-2

It states that >> l.remove(i) removes the element with index i. But 'remove' deletes the first matching value, not a specific index.

Note from the Author or Editor:
The comment is correct. l.remove(a) removes first occurrence of a in l.

kdeebee  Feb 11, 2019  May 31, 2019
Page 176
Table 7-3

Some symbols (Triangle_up marker, Star marker, Plus marker) are not rendered properly.

Note from the Author or Editor:
Indeed there is a rendering problem with selected markers in the table.

Ryoko  Jun 10, 2019  Dec 13, 2019
Page 299
the line just below the header "Monte Carlo Simulation"

"indispensible" should be "indispensable"

Note from the Author or Editor:
"Indispensible" is also in use although "indispensable" is more common. Can be changed.

Ryoko  Jul 15, 2019  Dec 13, 2019
Page 590
the last code snippet

The last code snippet is as same as the one on page 586: It should be below? In [63]: plt.figure(figsize=(10, 6)) plt.plot(srd.time_grid, srd.get_instrument_values()[:, :10]) plt.axhline(me_srd.get_constant('theta'), color='r', ls='--', lw=2.0) plt.xticks(rotation=30);

Ryoko  Jun 10, 2019  Dec 13, 2019
Safari Books Online
above graph

on the last (or 2nd to last) page before the Index: In [6]: import numpy as np maturitires = np.linspace(0.05, 2,0, 20) strike = np.linspace(80, 120, 20) T, K = np,meshgrid(strikes, maturities) I think "t" has the strikes, and not the maturities same for "K", which has the maturities and not the strikes

Note from the Author or Editor:
Indeed, instead of T, K it should read K, T. Also in the two plotting commands following thereafter. Will be corrected for the 1st reprinting.

Phil Puglisi  Nov 26, 2018  Jan 18, 2019