Skip to content

Instantly share code, notes, and snippets.

@WillKoehrsen
Created January 27, 2019 14:22
Show Gist options
  • Save WillKoehrsen/5c4ec64b32c2afb7c21fb6a53d3a57cf to your computer and use it in GitHub Desktop.
Save WillKoehrsen/5c4ec64b32c2afb7c21fb6a53d3a57cf to your computer and use it in GitHub Desktop.
def show_stats_by_tag(tag):
return(df.groupby(f'<tag>{tag}').describe()[['views', 'reads']])
stats = interact(show_stats_by_tag,
tag=widgets.Dropdown(options=['Towards Data Science', 'Education',
'Machine Learning', 'Python', 'Data Science']))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment