Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created September 27, 2021 09:31
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/f0d0a1cd23732e2de3192f3b26e392c5 to your computer and use it in GitHub Desktop.
Save amankharwal/f0d0a1cd23732e2de3192f3b26e392c5 to your computer and use it in GitHub Desktop.
import plotly.express as px
pie = data["Store_Type"].value_counts()
store = pie.index
orders = pie.values
fig = px.pie(data, values=orders, names=store)
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment