Created
April 4, 2019 23:45
-
-
Save gabraganca/6e5f1e1f2f1955823ef7a15303e1c248 to your computer and use it in GitHub Desktop.
Load dataset
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
dataset = 'ml-latest-small' | |
# Carrega as notas | |
df_ratings = pd.read_csv(f'{dataset}/ratings.csv', | |
dtype={'userId':str, 'movieId':str, 'rating':float}) | |
df_ratings.drop('timestamp', axis=1, inplace=True) | |
# Carrega informação dos filmes: | |
df_movies = pd.read_csv(f'{dataset}/movies.csv', dtype=str) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment