What does the np.histogram() function in NumPy do?
Correct answer
A. Computes the histogram of a set of data
15 views
A. Computes the histogram of a set of data
15 views
np.histogram() computes the histogram of a dataset: it returns the count of values in each bin together with the bin edges. It does not draw anything — plotting is done with Matplotlib's plt.hist().
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.