What is the output of plt.hist([1, 1, 2, 3, 3, 3, 4, 4, 5], bins=3)?
Correct answer
A. A histogram with 3 bins
11 views
A. A histogram with 3 bins
11 views
It produces a histogram with 3 bins. The range 1 to 5 is divided into three equal intervals and the bars show how many of the nine values fall in each.
The call also returns the counts, the bin edges and the drawn patches.
Want more practice? Try the full set of Data Science MCQs on MCQsExam.com.
Not sure why the answer is A? Ask here and get an explanation.