Skip to content

Commit 233f1fc

Browse files
authored
Update README.md
1 parent ab7afd7 commit 233f1fc

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,24 @@ We also provide a PDF file that has color images of the screenshots/diagrams use
5252

5353
* The Data Science Workshop - Second Edition [[Packt]](https://www.packtpub.com/product/the-data-science-workshop-second-edition/9781800566927) [[Amazon]](https://www.amazon.com/dp/1800566921)
5454

55+
## Errata
56+
57+
**Chapter 5 - Issue – page 126 **
58+
59+
The code chunk under Chapter 5 Data Visualization, Subsection Example of comparing populations using boxplots (page 126) is misplaced. The correct chunk of code can be found on the dedicated GitHub of the book. Also, this is the correct code:
60+
61+
`
62+
income_possibilities = adult_df.income.unique()
63+
dataForBox_dic= {}
64+
for poss in income_possibilities:
65+
BM = adult_df.income == poss
66+
dataForBox_dic[poss] = adult_df[BM]['education-num']
67+
68+
plt.boxplot(dataForBox_dic.values(),vert=False)
69+
plt.yticks([1,2],income_possibilities)
70+
plt.show()
71+
`
72+
5573
## Get to Know the Author
5674
**Roy Jafari**
5775
, Ph.D. is an assistant professor of business analytics at the University of Redlands.

0 commit comments

Comments
 (0)