Skip to content

Instantly share code, notes, and snippets.

Created Dec 23, 2020
What would you like to do?
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment