Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Dec 23, 2020
Embed
What would you like to do?
data = [go.Bar(
x = matches["toss_decision"].value_counts().index,
y = matches["toss_decision"].value_counts().values,
marker = dict(line=dict(color='#000000', width=1))
)]
layout = go.Layout(
{
"title":"Most Likely Decision After Winning Toss",
"xaxis":dict(title='Decision'),
"yaxis":dict(title='Number of Matches'),
"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