A

Admin • 833.24K Points
Coach

Q. What does `a[a > 0]` return?

  • (A) Indexes of elements greater than 0
  • (B) Boolean array
  • (C) Elements of a that are greater than 0
  • (D) None of the above
  • Correct Answer - Option(C)
  • Views: 20
  • Filed under category Numpy
  • Hashtags:

Explanation by: Admin

`a[a > 0]` returns a filtered array with elements greater than 0.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.