A

Admin • 833.24K Points
Coach

Q. What does np.argsort() return when applied to an array?

  • (A) A sorted version of the array
  • (B) Indices that would sort the array
  • (C) The indices of maximum values in the array
  • (D) A boolean array indicating sorted order
  • Correct Answer - Option(B)
  • Views: 67
  • Filed under category Numpy
  • Hashtags:

Explanation by: Admin

np.argsort() returns the indices that would sort an array, allowing you to sort related arrays accordingly.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.