-
-
Save amankharwal/2c9513562cf4bd77af45857d8493504c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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