Exercises for k-means clustering with Python 3 and scikit-learn as Jupyter Notebooks, with full solutions provided as notebooks and as PDFs. These exercises teach the fundamentals of k-means using some great real-world datasets, including stock price movements, measurements of fish and seed dimensions.
From the course Transition to Data Science. Buy the entire course for just $10 for many more exercises and helpful video lectures. Also available at DataCamp.
To use these exercises you'll need Python 3 and recent versions of scikit-learn and pandas. The easiest way to get started is to install the free Anaconda distribution.
Free for personal and non-commerical educational use, so long as the links to the course are not removed from any of the files.