This project, originally from kdnuggets, was presented to me in a data mining course at the university. This is a version which implementation is performed completely in Python, using the pandas and scikit-learn library.
You can view the project Jupyter notebook here.