You can follow the code for this chapter in the Chapter02/first_code.ipynb notebook. No additional packages are required, just Python.
You can find the code via the following link, which is in the GitHub repository in the Chapter02 folder (https://github.com/PacktPublishing/Learn-Python-by-Building-Data-Science-Applications).