An Introduction to Statistical Learning: with Applications in R, Gareth James, Daniela Witten, Trevor Hastie, Rob Tibshirani, 2021 (Springer) - Provides an accessible introduction to statistical learning, including a clear explanation of KNN, its mechanics, and its comparison with other classification algorithms.
Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, Aurélien Géron, 2023 (O'Reilly Media) - A practical guide to machine learning, offering hands-on examples and intuitive explanations of algorithms like KNN, focusing on implementation with popular libraries.