Bird
0
0

What does the function np.min() do when applied to a NumPy array?

easy📝 Conceptual Q11 of 15
NumPy - Aggregation Functions
What does the function np.min() do when applied to a NumPy array?
ACalculates the average of the array
BFinds the largest value in the array
CFinds the smallest value in the array
DCounts the number of elements in the array
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of np.min()

    The function np.min() is designed to find the minimum value in a NumPy array.
  2. Step 2: Compare with other options

    Options B, C, and D describe different functions: max, mean, and size respectively, which are not what np.min() does.
  3. Final Answer:

    Finds the smallest value in the array -> Option C
  4. Quick Check:

    np.min() = smallest value [OK]
Quick Trick: np.min() always returns the smallest number [OK]
Common Mistakes:
  • Confusing np.min() with np.max()
  • Thinking np.min() calculates average
  • Assuming np.min() counts elements

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More NumPy Quizzes