This is just an assignment from "The Data Scientist’s Toolbox" course on Coursera.