Skip to content

Instantly share code, notes, and snippets.

@fclesio
Created July 3, 2019 10:36
Show Gist options
  • Save fclesio/c6ee097015708ee176918744b2ad648f to your computer and use it in GitHub Desktop.
Save fclesio/c6ee097015708ee176918744b2ad648f to your computer and use it in GitHub Desktop.
# Filtering out non-EN songs
df_raw_lyrics = df_raw_lyrics[df_raw_lyrics['lang'] == 'en']
# Lyrics per album
df_raw_lyrics.groupby(['artist', 'album']).size().reset_index()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment