A

Admin • 832.27K Points
Coach

Q. Which function returns the sum of array elements along a specific axis?

  • (A) np.sum()
  • (B) np.add()
  • (C) np.aggregate()
  • (D) np.prod()
  • Correct Answer - Option(A)
  • Views: 11
  • Filed under category Numpy
  • Hashtags:

Explanation by: Admin

np.sum() adds up the elements in an array along the specified axis (or over all elements if no axis is specified).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.