The K-Nearest Neighbors (KNN) Algorithm in Python
realpython.com