Errata

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.

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 111
items 3 and 4

Items 3 and 4 should say "This creates a three-dimensional array..."

This can be confirmed by running:

In [1]: C.shape

Out[1]: (2, 1000000, 5)

In [2]: F.shape

Out[2]: (2, 1000000, 5)

And then for the fairness of comparison, it would make sense to include these cases when measuring performance:

C.sum(axis=2)

and

F.sum(axis=2)

On my machine F.sum(axis=2) beats C.sum(axis={0,1,2}), which then calls into question the conclusions on p. 112.

Artem Glebov  Jul 10, 2021 
Printed Page 149
last paragraph

The special method call n._sizeof__() is not used. The call should be import sys then sys.getsizeof(n). Doing it the way stated in the book you get an attribute error.

Christopher Pimentel  Feb 24, 2021 
Printed Page 156
bottom code block

code that needs to be fixed:
y[:, 1] = y[:, 0] * 100 --> y[:, 0] = y[:, 0] * 100

Anonymous  Jan 25, 2021