Skip to content

Instantly share code, notes, and snippets.

@srang992
Created September 24, 2022 13:18
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 srang992/2ed5dc0070d83bfd302bd6928e7f0c84 to your computer and use it in GitHub Desktop.
Save srang992/2ed5dc0070d83bfd302bd6928e7f0c84 to your computer and use it in GitHub Desktop.
plt.figure(figsize=(10,6))
df1 = pd.DataFrame(white_shark_case['victim_activity'].value_counts().reset_index())
df1 = df1[df1['victim_activity'] > 10]
plt.pie(x='victim_activity', labels='index', data=df1, autopct='%.1f%%')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment