Created
September 29, 2019 10:20
-
-
Save dradecic/61ceda3fcf0c2619f2b62774f88439e7 to your computer and use it in GitHub Desktop.
recommender_1_imports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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