Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created December 23, 2020 14:12
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 amankharwal/a3203740b81fb1ec4beb600655d437aa to your computer and use it in GitHub Desktop.
Save amankharwal/a3203740b81fb1ec4beb600655d437aa to your computer and use it in GitHub Desktop.
matches['season'] = matches['date'].str[:4].astype(int)
data = [go.Histogram(x=matches['season'], marker=dict(color='#EB89B5', line=dict(color='#000000', width=1)), opacity=0.75)]
layout = go.Layout(title='Matches In Every Season ',xaxis=dict(title='Season',tickmode='linear'),
yaxis=dict(title='Count'),bargap=0.2, plot_bgcolor='rgb(245,245,245)')
fig = go.Figure(data=data, layout=layout)
iplot(fig)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment