Skip to content

Instantly share code, notes, and snippets.

@michelkana
Created October 26, 2021 12:57
Show Gist options
  • Save michelkana/7a4a642434cd851ffa50b565e0a1254d to your computer and use it in GitHub Desktop.
Save michelkana/7a4a642434cd851ffa50b565e0a1254d to your computer and use it in GitHub Desktop.
import plotly.express as px
minute_top10 = df[['Player','Minutes Played']].sort_values('Minutes Played',
ascending=False).head(10)
fig = px.bar(minute_top10, x='Minutes Played',y='Player', orientation='h', height=500,
title='Top 10 Players by minutes played')
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment