Skip to content

Instantly share code, notes, and snippets.

@dradecic
Created September 29, 2019 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dradecic/61ceda3fcf0c2619f2b62774f88439e7 to your computer and use it in GitHub Desktop.
Save dradecic/61ceda3fcf0c2619f2b62774f88439e7 to your computer and use it in GitHub Desktop.
recommender_1_imports
%matplotlib inline
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from collections import defaultdict
# read CSVs
movies = pd.read_csv('data/movies.csv')
ratings = pd.read_csv('data/ratings.csv')
# merge on movieId column
data = pd.merge(left=movies, right=ratings, on='movieId')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment