This book (authored by Gareth James, Daniela Witten, Trevor Hastie and Robert Tibshirani ) is an excellent introduction to the data science and machine learning feild. Particularly in developing an analytical foundation and writing code to solve common data science problems. Below are my solutions to the problems throughout the book. The book itself focuses on developing these models in R though, as python has become a cornerstone of the data science field I have approached the problems with python.
While I am confident in the answers provided I offer no guarantee that they are all correct. I would happily welcome corrections or suggestions.