Which Matplotlib function creates a histogram?
-
A
plt.bar()
-
B
plt.hist()
Correct answer
-
C
plt.plot()
-
D
plt.dist()
Correct answer
B. plt.hist()
17 views
Explanation
plt.hist() is used to create histograms that show the distribution of numerical data.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ