Created
April 21, 2019 12:01
-
-
Save prateekjoshi565/a873315ce932e89d17342868a7bab735 to your computer and use it in GitHub Desktop.
genre_merge_data_labels
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
# change datatype of 'movie_id' | |
meta['movie_id'] = meta['movie_id'].astype(str) | |
# merge meta with movies | |
movies = pd.merge(movies, meta[['movie_id', 'movie_name', 'genre']], on = 'movie_id') | |
movies.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment