Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created September 27, 2021 09:33
Show Gist options
  • Save amankharwal/fedb2135a493811c0c3466d3f4a4ffae to your computer and use it in GitHub Desktop.
Save amankharwal/fedb2135a493811c0c3466d3f4a4ffae to your computer and use it in GitHub Desktop.
pie2 = data["Location_Type"].value_counts()
location = pie2.index
orders = pie2.values
fig = px.pie(data, values=orders, names=location)
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment