Advertisements
Advertisements
Question
Name the plot which displays the statistical summary.
Note: Give appropriate title, set xlabel and ylabel while attempting the following questions.
Code Writing
Advertisements
Solution
The plot which displays the statistical summary of data is called a Box Plot (Box and Whisker Plot).
A box plot shows the minimum value, maximum value, median, and quartile values of a dataset.
import matplotlib.pyplot as plt
marks = [15, 18, 21, 22, 25]
plt.boxplot(marks)
plt.title("Statistical Summary of Student Marks")
plt.xlabel("Class 12 Students")
plt.ylabel("Marks Scored")
plt.show()
shaalaa.com
Is there an error in this question or solution?
