Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created December 7, 2020 12:59
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/2c9513562cf4bd77af45857d8493504c to your computer and use it in GitHub Desktop.
Save amankharwal/2c9513562cf4bd77af45857d8493504c to your computer and use it in GitHub Desktop.
fig=plt.figure(figsize=(5,5))
colors=["skyblue",'pink']
pos=data[data['label']==1]
neg=data[data['label']==0]
ck=[pos['label'].count(),neg['label'].count()]
legpie=plt.pie(ck,labels=["Positive","Negative"],
autopct ='%1.1f%%',
shadow = True,
colors = colors,
startangle = 45,
explode=(0, 0.1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment