Created
September 29, 2019 10:25
-
-
Save dradecic/179d68a33510f8f25291e27c0b86eca1 to your computer and use it in GitHub Desktop.
recommender1_4_genres
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
genre_df = pd.DataFrame(data['genres'].str.split('|').tolist(), index=data['movieId']).stack() | |
genre_df = genre_df.reset_index([0, 'movieId']) | |
genre_df.columns = ['movieId', 'Genre'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment