Practice from the book "Python for data analysis"