Last active
November 20, 2019 17:02
-
-
Save mayukh18/70b32a212151dd645a4031b033e59ede to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import pandas as pd | |
import numpy as np | |
data = pd.read_csv('movielens100k.csv') | |
data['userId'] = data['userId'].astype('string') | |
data['movieId'] = data['movieId'].astype('string') | |
users = list(set(data['userId'])) #list of all users | |
movies = list(set(data['movieId'])) #list of all movies | |
print(len(users)) | |
print(len(movies)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment