Q. Sina has created ordered set of data from the number of new customers registered on his online service center in last 20 months.
Write a program to plot this data on a filled boxplot with means shown.
Answer :-
import matplotlib.pyplot as plt noofcustomer = [ 63, 65, 67, 69, 69, 71, 71, 72, 74, 75, 78, 79, 79, 80, 81, 83,56,35, 75 , 60 ] #len(x) = 20 plt.boxplot( noofcustomer , showmeans = True ) plt.show()
Output:-
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )