Question 1 You're a Data Scientist at an e-commerce company.
Sigmoid technical mcq question, verified with a worked answer. Free to practise - no sign-up.
You're a Data Scientist at an e-commerce company. You've just received a dataset containing customer age and purchase history. Your first task is to visualize the data's distribution using a histogram.
Which Python code snippet would you use to accomplish this?
Show answer & explanation
Answer: C. C) ```python
In matplotlib, plt.hist() creates and displays a histogram of data distribution.
Step-by-step Derivation:
Step 1: Matplotlib's histogram function is plt.hist().