Skip to content

Instantly share code, notes, and snippets.

@catris25
Created January 16, 2021 17:16
Show Gist options
  • Select an option

  • Save catris25/c574a2ce2c067bc622fedb4af8c58a45 to your computer and use it in GitHub Desktop.

Select an option

Save catris25/c574a2ce2c067bc622fedb4af8c58a45 to your computer and use it in GitHub Desktop.
Which artists have the most songs in my Top 100?
a = df1['artist'].value_counts().nlargest(10)
fig = go.Figure([go.Bar(x=a.index,
y=a.values,
text=a.values,
textposition='auto',
marker_color='seagreen')])
fig.update_layout(title_text='Artists with Most Songs on My Top 100')
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment