Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 16, 2020 06:58
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/0eff6e52b056d210c6f561684d92aad0 to your computer and use it in GitHub Desktop.
Save amankharwal/0eff6e52b056d210c6f561684d92aad0 to your computer and use it in GitHub Desktop.
print("Top 10 frequently sold products(Tabular Representation)")
x = data['itemDescription'].value_counts().sort_values(ascending=False)[:10]
fig = px.bar(x= x.index, y= x.values)
fig.update_layout(title_text= "Top 10 frequently sold products (Graphical Representation)", xaxis_title= "Products", yaxis_title="Count")
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment