handson-ml2 icon indicating copy to clipboard operation
handson-ml2 copied to clipboard

[Chapter 1] prepare_country_stats is not defined

Open nowphoenix opened this issue 4 years ago • 1 comments

where is prepare_country_stats defined in Chapter 1 example?

image

nowphoenix avatar Oct 02 '21 00:10 nowphoenix

Hi @nowphoenix ,

Thanks for your question. You've come to the right place! 😊 As explained in the book, the function you're looking for is available in this github project. Specifically, it's near the beginning of the notebook for chapter 1.

More generally, every code example in the book is available in one of the notebooks in this project (there's one notebook per chapter). There's also some extra material in the notebooks, such as several tutorials. I've also taken out some of the long and boring code from the book (including the function you're looking for), but everything is available in the notebooks.

Enjoy your journey into Machine Learning!

ageron avatar Oct 06 '21 06:10 ageron