Which Matplotlib function plots data points with error bars?
-
A
plt.errorbar()
Correct answer
-
B
plt.stem()
-
C
plt.boxplot()
-
D
plt.step()
Correct answer
A. plt.errorbar()
18 views
Explanation
plt.errorbar(x, y, yerr=sd) shows uncertainty, such as standard deviation or confidence intervals, which is common in scientific charts.
Reference
Asked in: Data Science Interviews
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ