5.Write a Python program to create a Pie plot to get the frequency of the three species of the Iris data.
from pandas import *
from numpy import *
from matplotlib.pyplot import *
df=read_csv("Iris.csv")
data=df['Species']
data1=df['Id']
pie(data1,labels=data)
show()
Comments
Post a Comment