A basic example of collaborative filtering in Python using the MovieLens 100k dataset, the dataset contains ratings data for 9,724 movies by 610 users.
pandas
To use the code, simply run the script in a Python interpreter.
Collaborative filtering is a method of making recommendations based on the ratings of similar users. In this example, i used Pearson correlation as the similarity measure and select the k nearest neighbors to make recommendations.
MovieLens 100k dataset: https://grouplens.org/datasets/movielens/100k/