Created
January 28, 2022 14:51
-
-
Save erap129/8aeea5a8f50a6bd7e1c894ff06939c45 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
| movies_df['genre'] = movies_df['genre'].apply(lambda x: x.split('|')) | |
| movies_df_exploded = movies_df.explode('genre') | |
| px.histogram(movies_df_exploded, x='genre', height=400, title='Movie count by genre').update_xaxes(categoryorder="total descending") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment