Diabetes classification

Plot a bar graph showing number of classes and no of examples in each class.

You can use “bar function” of matplotlib.pyplot, to plot the required graph.
import matplotlib.pyplot as plt
xlist,ylist = np.unique(ylabel, return_counts = True)
plt.bar(xlist,ylist)

xlist contains data for xaxis, ylist contains data for yaxis like frequencies.
where ylabel contains labels of classes for all training examples.
Hope this cleared your doubt.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.