Errata

Data Science on the Google Cloud Platform

Errata for Data Science on the Google Cloud Platform

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 24
Figure 1-10

The 2 inputs on the left are both Historical data, should othe lower one be realtime?

Luka Cempre  May 13, 2022 
Printed Page 50
The shell counting the number of columns: head -2 201503.csv | tail -1 | sed 's/,/ /g' | wc -w

The following shell command returns 81 as the result.
head -2 201503.csv | tail -1 | sed 's/,/ /g' | wc -w

However, the shell is wrong to count the number of columns.
The shell converts a comma to a space, and then count the number of words separated by the space. It does not return the correct value.
For example, if a column has the following values
4,,,"",,2,
the shell will convert it to
4 "" 2,
and it will say there are three columns. However, there are six columns. If the shell simply counted the number of commas, it will produce six, which is the correct value.

ilhyung cho  Feb 03, 2023 
ePub Page 76
code in point number 4 "for MONTH in 'seg 1 12'; do bash download.sh 2015 $MONTH done"

I’m new to GCP and still learning from your book and trying out the cases. However, I’m unable to download the data as per pg 76 of your book despite following the instructions. (I have sent the screenshots to bookquestions@oreilly.com).

Files unable to be downloaded and shows "bash: download.sh: No such file or directory". The steps before this are all working fine.

Appreciate the advice on how to proceed further.

Johnny Tay  Apr 27, 2022