Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created April 21, 2019 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prateekjoshi565/1ac72f1d5b276d291cdd3f229bad37cd to your computer and use it in GitHub Desktop.
Save prateekjoshi565/1ac72f1d5b276d291cdd3f229bad37cd to your computer and use it in GitHub Desktop.
genre_frequencies
all_genres = nltk.FreqDist(all_genres)
# create dataframe
all_genres_df = pd.DataFrame({'Genre': list(all_genres.keys()),
'Count': list(all_genres.values())})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment