Have you ever wondered how your email inbox knows which messages are spam, or how a streaming service guesses what you’ll want to watch next? These everyday miracles are powered by machine learning—algorithms that learn patterns from data instead of following rigid rules. In this chapter, we’ll explore the most important ideas of machine learning and build models using scikit-learn, a friendly Python library that makes the process surprisingly simple. By the end, you’ll be able to train your own classifiers and uncover hidden groups in data, turning raw numbers into real decisions.